Added support for build without ADL/NVML/NVAPI (issue #120)

Added support for build OSX native binaries (issue #63)
This commit is contained in:
Gabriele 'matrix' Gristina
2016-01-20 20:55:09 +01:00
parent c3bb94f5d0
commit 5da79e4411
13 changed files with 456 additions and 108 deletions
+8 -2
View File
@@ -43,11 +43,15 @@
#ifdef OSX
#include <termios.h>
#include <sys/ioctl.h>
#include <mach-o/dyld.h>
#endif
#ifdef HAVE_HWMON
typedef void *HM_LIB;
#endif
#endif // _POSIX
#ifdef _WIN
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
@@ -70,11 +74,13 @@ typedef INT64 int64_t;
typedef UINT32 uint;
typedef UINT64 uint64_t;
#ifdef HAVE_HWMON
typedef HINSTANCE HM_LIB;
#endif
#define mkdir(name,mode) mkdir (name)
#endif
#endif // _WIN
typedef uint8_t u8;
typedef uint16_t u16;
@@ -104,4 +110,4 @@ void log_error (const char *fmt, ...);
#define MIN(a,b) (((a) < (b)) ? (a) : (b))
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
#endif
#endif // COMMON_H