728x90
반응형
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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
반응형
'C C++' 카테고리의 다른 글
Xlnt (1) 소개 : C++14 기반 excel(xlsx) 라이브러리 (0) | 2017.10.15 |
---|---|
Qt single instance process (0) | 2017.09.08 |
함수의 인자를 const로 사용 (0) | 2014.12.07 |
복사방지 C++ 클래스(Class) 만들기 (0) | 2014.03.20 |
boost asio tcp block server (0) | 2014.02.18 |