728x90
반응형
// which32-64.cpp
// check 32/64bit for Microsoft Visual C++(Visual Studio) (or, C++ Builer, etc)
#if ((ULONG_MAX) == (UINT_MAX))
# define IS32BIT // 32bit Windows(x32)
#else
# define IS64BIT // 64bit Windows(x64)
#endif
// check 32/64bit for gcc(g++)
#if __GNUC__
#if __x86_64__ || __ppc64__
#define ENVIRONMENT64 // 64bit OS
#else
#define ENVIRONMENT32 // 32bit OS
#endif
#endif
728x90
반응형

+ Recent posts