blob: 561cd60d9b33350a23656d8f7708eaa78382824a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/**
* Platform.h
*
* Macro that we use to find out whether we run on 64bit or 32bit
* platforms.
*
* @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
* @copyright 2015 Copernica BV
*/
// Check windows
#if _WIN32 || _WIN64
#if _WIN64
#define PHPCPP_64BIT
#else
#define PHPCPP_32BIT
#endif
#endif
// Check GCC and clang
#if __GNUC__ || __clang__
#if __x86_64__ || __ppc64__
#define PHPCPP_64BIT
#else
#define PHPCPP_32BIT
#endif
#endif
|