Fix build on Windows
parent
5bd50a2d90
commit
28c50c16cd
|
@ -32,6 +32,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
#ifndef _WIN32_WINNT
|
||||||
|
#define _WIN32_WINNT 0x0500
|
||||||
|
#endif
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#include <eh.h>
|
#include <eh.h>
|
||||||
|
|
|
@ -30,6 +30,9 @@
|
||||||
#define JMUTEX_H
|
#define JMUTEX_H
|
||||||
|
|
||||||
#if (defined(WIN32) || defined(_WIN32_WCE))
|
#if (defined(WIN32) || defined(_WIN32_WCE))
|
||||||
|
#ifndef _WIN32_WINNT
|
||||||
|
#define _WIN32_WINNT 0x0500
|
||||||
|
#endif
|
||||||
#ifndef _WIN32_WCE
|
#ifndef _WIN32_WCE
|
||||||
#include <process.h>
|
#include <process.h>
|
||||||
#endif // _WIN32_WCE
|
#endif // _WIN32_WCE
|
||||||
|
@ -88,7 +91,7 @@ public:
|
||||||
void signal() {
|
void signal() {
|
||||||
SetEvent(hEvent);
|
SetEvent(hEvent);
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
//#define ALIGNOF(type) offsetof (alignment_trick<type>, member)
|
//#define ALIGNOF(type) offsetof (alignment_trick<type>, member)
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
#ifndef _WIN32_WINNT
|
||||||
|
#define _WIN32_WINNT 0x0500
|
||||||
|
#endif
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
#define sleep_ms(x) Sleep(x)
|
#define sleep_ms(x) Sleep(x)
|
||||||
|
@ -47,7 +50,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdint.h> //for uintptr_t
|
#include <stdint.h> //for uintptr_t
|
||||||
|
|
||||||
#if defined(linux) || defined(__linux)
|
#if (defined(linux) || defined(__linux)) && !defined(_GNU_SOURCE)
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue