| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/libspl/include/spl_platform.h
Go to the documentation of this file.

    00001
    00028 //---------------------------------------------------------------------------------------------------------------------------
    00033 //---------------------------------------------------------------------------------------------------------------------------
    00034
    00035 #ifndef               __SPL_PLATFORM_H__
    00036 #define               __SPL_PLATFORM_H__
    00037
    00038 //
    00039 // PLATFORM DEFINES
    00040 //
    00041 #define               SPL_PLATFORM_WIN32                          1
    00042 #define               SPL_PLATFORM_LINUX                          2
    00043 #define               SPL_PLATFORM_APPLE                          3
    00044 #define    SPL_PLATFORM_SOLARIS                        4
    00045
    00046 //
    00047 // COMPILER DEFINES
    00048 //
    00049 #define               SPL_COMPILER_VCPLUSPLUS                     1
    00050 #define               SPL_COMPILER_BCPLUSPLUS                     2
    00051 #define               SPL_COMPILER_GNUC                           3
    00052 #define               SPL_COMPILER_CODEWARRIOR         4
    00053 #define               SPL_COMPILER_SUNFORTE7                      5
    00054
    00055 //
    00056 // PLATFORM DETECTION
    00057 //
    00058 #if        defined( WIN32 ) || defined( __WIN32__ ) || defined ( _WIN32 ) || defined( WIN64 ) || defined( _WIN32_WCE )
    00059
    00060            #define SPL_PLATFORM                                   SPL_PLATFORM_WIN32
    00061
    00062            //
    00063            // Save compile date and time to lib
    00064            //
    00065            #pragma comment( user, "Compiled on " __DATE__ " at " __TIME__ )
    00066
    00067 #elif defined( __LINUX__ ) || defined( linux ) || defined( __FreeBSD__ )
    00068
    00069            #define SPL_PLATFORM                                   SPL_PLATFORM_LINUX
    00070
    00071 #elif defined( __APPLE_CC__ ) || defined( APPLE_CC )
    00072
    00073            #define    SPL_PLATFORM                                           SPL_PLATFORM_APPLE
    00074
    00075 #elif defined(sparc) && defined(sun) && defined(unix)
    00076
    00077            //
    00078            // (karg) Solaris port stuff
    00079            //
    00080            #define SPL_PLATFORM                                   SPL_PLATFORM_SOLARIS
    00081
    00082 #else
    00083
    00084            #error "ERROR: Operating system is unknown!"
    00085
    00086 #endif     //         PLATFORM
    00087
    00088 //
    00089 // COMPILER DETECTION
    00090 //
    00091 #if defined( _MSC_VER )
    00092
    00093            #define SPL_COMPILER                                   SPL_COMPILER_VCPLUSPLUS
    00094
    00095 #elif defined( __BORLANDC__ ) || defined( __BCPLUSPLUS__ )
    00096
    00097            #define SPL_COMPILER                                   SPL_COMPILER_BCPLUSPLUS
    00098
    00099 #elif defined( __GNUC__ )
    00100
    00101            #define SPL_COMPILER                                   SPL_COMPILER_GNUC
    00102
    00103 #elif defined( __MWERKS__ )
    00104
    00105            #define SPL_COMPILER                                   SPL_COMPILER_CODEWARRIOR
    00106
    00107 #elif defined( __SUNPRO_CC)
    00108
    00109            //
    00110            // Sun forte compiler, the solaris port (karg)
    00111            //
    00112            #define SPL_COMPILER                                   SPL_COMPILER_SUNFORTE7
    00113
    00114 #else
    00115
    00116            #error "ERROR: Compiler is unknown!"
    00117
    00118 #endif     //         COMPILER
    00119
    00120
    00121 #endif     //         __SPL_PLATFORM_H__
    00122

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines