Geant4_10
Types.h
Go to the documentation of this file.
1 #ifndef HEPREP_TYPES_H
2 #define HEPREP_TYPES_H 1
3 
4 namespace HEPREP {
5 
6 #if defined(WIN32) && !defined(GNU_GCC)
7 
8 // WIN32 and NOT GNU_GCC
9 typedef long int32;
10 typedef __int64 int64;
11 #define HEPREP_INT32_FORMAT "%d"
12 #define HEPREP_INT64_FORMAT "%ld"
13 
14 #else // other than WIN32-MSVC
15 #if defined(_LP64)
16 
17 // 64 Bit Platforms
18 typedef int int32;
19 typedef long int64;
20 #define HEPREP_INT32_FORMAT "%d"
21 #define HEPREP_INT64_FORMAT "%ld"
22 
23 #else
24 
25 // 32-Bit Platforms
26 typedef long int32;
27 typedef long long int64;
28 #define HEPREP_INT32_FORMAT "%ld"
29 #define HEPREP_INT64_FORMAT "%lld"
30 
31 #endif // 32-Bit Platforms
32 #endif // other than WIN32-MSVC
33 
34 } // namespace HEPREP
35 
36 #endif
long int32
Definition: Types.h:26
long long int64
Definition: Types.h:27