Usage of stdint.h types
[anna.git] / include / anna / config / defines.hpp
index 7d03fad..a8e995b 100644 (file)
@@ -9,7 +9,10 @@
 #ifndef anna_config_defines_hpp
 #define anna_config_defines_hpp
 
-#include <sys/types.h>
+//#include <sys/types.h>
+#include <stdint.h>
+// For cstd0x compatibility we will use stdint.h types instead of std:: ones on cstdint:
+//#include <cstdint>  when C++11 available
 
 #ifdef ANNA_FILE_LOCATION
 #undef ANNA_FILE_LOCATION
 namespace anna {
 #ifndef __x86_64__
 #undef  __anna64__
-/** Defines required data type to conversion from pointer to integer */
-typedef int ptrnumber;
+///** Defines required data type to conversion from pointer to integer */
+//typedef int ptrnumber;
 #else
 #define __anna64__
-/** Defines required data type to conversion from pointer to integer */
-typedef long ptrnumber;
+///** Defines required data type to conversion from pointer to integer */
+//typedef long ptrnumber;
 #endif
+
+typedef intptr_t ptrnumber;
+
 }
 
 /**