00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00035 #ifndef __SO3_PLATFORM_H__
00036 #define __SO3_PLATFORM_H__
00037
00038
00039 #define SO3_PLATFORM_WINDOWS 1
00040 #define SO3_PLATFORM_LINUX 2
00041 #define SO3_PLATFORM_APPLE 3
00042
00043
00044 #define SO3_COMPILATOR_MSVC 1
00045 #define SO3_COMPILATOR_GNUC 2
00046
00047
00048 #if defined(_MSC_VER)
00049 # define SO3_COMPILATOR SO3_COMPILATOR_MSVC
00050 # define SO3_COMPILATOR_VERSION _MSC_VER
00051 # include "SO3MSC.h"
00052 #elif defined(__GNUC__)
00053 # define SO3_COMPILATOR SO3_COMPILATOR_GNUC
00054 # define SO3_COMPILATOR_VERSION __VERSION__
00055 # include "SO3GNUC.h"
00056 #else
00057 # pragma error "No supported compilator found, abborting compilation!"
00058 #endif
00059
00060
00061 #if defined(__WIN32__) || defined(_WIN32) || defined(WIN32) || defined(_WINDOWS)
00062 # define SO3_PLATFORM SO3_PLATFORM_WINDOWS
00063 # include "SO3MsWindows.h"
00064 #elif defined(__APPLE_CC__)
00065 # define SO3_PLATFORM SO3_PLATFORM_APPLE
00066 # pragma error "Apple platforms are not supported yet, abborting compilation!"
00067 #else
00068 # define SO3_PLATFORM SO3_PLATFORM_LINUX
00069 # pragma error "Linux platforms are not supported yet, abborting compilation!"
00070 #endif
00071
00072 #endif