Browse Source

include/starpu.h: fix definition of uintptr_t when using MSVC

Nathalie Furmento 12 years ago
parent
commit
69f2686ede
1 changed files with 2 additions and 1 deletions
  1. 2 1
      include/starpu.h

+ 2 - 1
include/starpu.h

@@ -23,11 +23,12 @@
 #ifndef _MSC_VER
 #include <stdint.h>
 #else
+#include <windows.h>
 typedef unsigned char uint8_t;
 typedef unsigned short uint16_t;
 typedef unsigned int uint32_t;
 typedef unsigned long long uint64_t;
-typedef unsigned int uintptr_t;
+typedef UINT_PTR uintptr_t;
 #endif
 
 #include <starpu_config.h>