Ver código fonte

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

Nathalie Furmento 12 anos atrás
pai
commit
69f2686ede
1 arquivos alterados com 2 adições e 1 exclusões
  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>