반응형

Predefined Macros for OS



1) Windows
_WIN32   Both 32 bit and 64 bit
_WIN64   64 bit only

2) Unix (Linux, *BSD, Mac OS X)
unix
__unix
__unix__ 

3) Mac OS X 
__APPLE__ 
__MACH__ 

4) Linux 
__linux__ 

5) Android 
__ANDROID__

반응형

'C++' 카테고리의 다른 글

fprintf(),fwprintf()로 한글이 출력되지 않는 문제  (0) 2011.08.11
map 파일  (0) 2011.07.26
Format Specification  (0) 2011.04.20
std::map  (0) 2009.09.03
std::vector  (0) 2009.08.26

+ Recent posts