projects
/
anna.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usage of stdint.h types
[anna.git]
/
include
/
anna
/
config
/
defines.hpp
diff --git
a/include/anna/config/defines.hpp
b/include/anna/config/defines.hpp
index
7d03fad
..
a8e995b
100644
(file)
--- a/
include/anna/config/defines.hpp
+++ b/
include/anna/config/defines.hpp
@@
-9,7
+9,10
@@
#ifndef anna_config_defines_hpp
#define anna_config_defines_hpp
#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
#ifdef ANNA_FILE_LOCATION
#undef ANNA_FILE_LOCATION
@@
-94,13
+97,16
@@
namespace anna {
#ifndef __x86_64__
#undef __anna64__
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__
#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
#endif
+
+typedef intptr_t ptrnumber;
+
}
/**
}
/**