Compile fixes for MinGW, checked with basic initial setup, no CUDA, gcc 4.5.2.

OpenImageIO still gives link-time errors, will try to make a lib for MinGW, see if it is fixed.
This commit is contained in:
Antony Riakiotakis
2011-09-04 15:39:09 +00:00
parent db1664ed4c
commit 6edb09fe93
4 changed files with 34 additions and 3 deletions

View File

@@ -20,7 +20,9 @@
#include "util_types.h"
#ifdef _WIN32
#if(!defined(FREE_WINDOWS))
#include <intrin.h>
#endif
#include <windows.h>
#elif defined(__APPLE__)
#include <sys/sysctl.h>
@@ -57,7 +59,7 @@ int system_cpu_thread_count()
return count;
}
#ifndef _WIN32
#if !defined(_WIN32) || defined(FREE_WINDOWS)
static void __cpuid(int data[4], int selector)
{
#ifdef __x86_64__