Vanilla.PDF  1.5.2
Cross-platform toolkit for creating and modifying PDF documents
c_platform.h
Go to the documentation of this file.
1 #ifndef _C_PLATFORM_H
2 #define _C_PLATFORM_H
3 
9 #if defined(_MSC_VER)
10  #define COMPILER_MICROSOFT_VISUAL_STUDIO
11 #endif /* _MSC_VER */
12 
13 // Check windows
14 #if defined(_WIN64)
15  #define ENVIRONMENT_64_BIT
16 #endif /* _WIN64 */
17 
18 // Check GCC
19 #if (__GNUC__)
20  #define COMPILER_GCC
21 
22  #if (__x86_64__ || __ppc64__)
23  #define ENVIRONMENT_64_BIT
24  #endif /* __x86_64__ || __ppc64__ */
25 #endif /* __GNUC__ */
26 
27 #if !defined(ENVIRONMENT_64_BIT)
28  #define ENVIRONMENT_32_BIT
29 #endif /* ENVIRONMENT_64_BIT */
30 
31 #endif /* _C_PLATFORM_H */