Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
Types.h
Go to the documentation of this file.
1#ifndef HEPREP_TYPES_H
2#define HEPREP_TYPES_H 1
3
4namespace HEPREP {
5
6#if defined(WIN32) && !defined(GNU_GCC)
7
8// WIN32 and NOT GNU_GCC
9typedef long int32;
10typedef __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
18typedef int int32;
19typedef long int64;
20#define HEPREP_INT32_FORMAT "%d"
21#define HEPREP_INT64_FORMAT "%ld"
22
23#else
24
25// 32-Bit Platforms
26typedef long int32;
27typedef 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 long int64
Definition: Types.h:27
long int32
Definition: Types.h:26