Commit a214e8ac authored by Robert McGibbon's avatar Robert McGibbon
Browse files

Changes necessery for VS2015

parent 6ba00588
...@@ -65,6 +65,11 @@ ELSE(WIN32) ...@@ -65,6 +65,11 @@ ELSE(WIN32)
ENDIF(NOT OPENMM_INSTALL_PREFIX) ENDIF(NOT OPENMM_INSTALL_PREFIX)
ENDIF(WIN32) ENDIF(WIN32)
IF(WIN32)
ADD_DEFINITIONS(-DWIN32)
ENDIF(WIN32)
# Include CPU-Features for Android # Include CPU-Features for Android
IF (ANDROID) IF (ANDROID)
INCLUDE_DIRECTORIES(${ANDROID_NDK}/sources/cpufeatures) INCLUDE_DIRECTORIES(${ANDROID_NDK}/sources/cpufeatures)
......
...@@ -46,7 +46,6 @@ ...@@ -46,7 +46,6 @@
#ifndef WIN_PTHREADS #ifndef WIN_PTHREADS
#define WIN_PTHREADS #define WIN_PTHREADS
#include <windows.h> #include <windows.h>
#include <intrin.h> #include <intrin.h>
#include <setjmp.h> #include <setjmp.h>
...@@ -121,6 +120,9 @@ ...@@ -121,6 +120,9 @@
#endif #endif
#if _MSC_VER >= 1900
#include <ctime>
#else
/* Windows doesn't have this, so declare it ourselves. */ /* Windows doesn't have this, so declare it ourselves. */
struct timespec struct timespec
{ {
...@@ -128,6 +130,7 @@ struct timespec ...@@ -128,6 +130,7 @@ struct timespec
long long tv_sec; long long tv_sec;
long long tv_nsec; long long tv_nsec;
}; };
#endif
typedef struct _pthread_cleanup _pthread_cleanup; typedef struct _pthread_cleanup _pthread_cleanup;
struct _pthread_cleanup struct _pthread_cleanup
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment