CrossFramework Library

XBase/OS.hpp

説明を見る。
00001 
00006 #if defined(XBASE_INCLUDED_OS_HPP)
00007 #else
00008 #define XBASE_INCLUDED_OS_HPP
00009 
00010 //------------------------------------------------------------
00012 
00013 
00014 
00015 
00017 #define XBASE_OS_WINDOWS
00018 #undef  XBASE_OS_WINDOWS
00019 
00021 #define XBASE_OS_MACOSX
00022 #undef  XBASE_OS_MACOSX
00023 
00025 #define XBASE_OS_IPHONE
00026 #undef  XBASE_OS_IPHONE
00027 
00029 #define XBASE_OS_IPAD
00030 #undef  XBASE_OS_IPAD
00031 
00033 #define XBASE_OS_IOS
00034 #undef  XBASE_OS_IOS
00035 
00036 // 選択
00037 #if defined(_WIN32)
00038     #define XBASE_OS_WINDOWS
00039 #elif defined(__APPLE__)
00040     #if defined(__IPHONE_OS_VERSION_MIN_REQUIRED)
00041         #define XBASE_OS_IOS
00042         #define XBASE_OS_IPHONE
00043     #elif defined(__IPAD_OS_VERSION_MIN_REQUIRED)
00044         #define XBASE_OS_IOS
00045         #define XBASE_OS_IPAD
00046     #elif defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__)
00047         #define XBASE_OS_MACOSX
00048     #else
00049         #error Unkonwn OS.
00050     #endif
00051 #else
00052     #error Unkonwn OS.
00053 #endif
00054 
00056 
00057 //------------------------------------------------------------
00058 #endif
00059 // EOF
 全て クラス ネームスペース ファイル 関数 変数 型定義 列挙型 列挙型の値 マクロ定義