Go to the documentation of this file.
33 #ifndef DART_COMMON_PLATFORM_HPP_
34 #define DART_COMMON_PLATFORM_HPP_
37 #if defined(__linux__)
39 #define DART_OS_LINUX 1
40 #if __x86_64__ || __ppc64__
41 #define DART_ARCH_64BITS 1
43 #define DART_ARCH_32BITS 1
46 #elif defined(__APPLE__)
48 #define DART_OS_MACOS 1
50 #define DART_ARCH_64BITS 1
52 #define DART_ARCH_32BITS 1
57 #define DART_OS_WINDOWS 1
58 #define DART_ARCH_32BITS 1
62 #define DART_OS_WINDOWS 1
63 #define DART_ARCH_64BITS 1
67 #error Unsupported platform.
72 #ifndef DART_OS_WINDOWS
73 #define DART_OS_WINDOWS 0
77 #define DART_OS_LINUX 0
81 #define DART_OS_MACOS 0
84 #ifndef DART_ARCH_32BITS
85 #define DART_ARCH_32BITS 0
88 #ifndef DART_ARCH_64BITS
89 #define DART_ARCH_64BITS 0