Platform.h

Go to the documentation of this file.
00001 #ifndef X3DTK_PLATFORM_H
00002 #define X3DTK_PLATFORM_H
00003 
00004 // Defines and includes for MSVC
00005 #ifdef WIN32
00006   #ifdef X3DTK_EXPORTS
00007     #define X3DTK_API __declspec(dllexport)
00008   #else
00009     #define X3DTK_API __declspec(dllimport)  
00010   #endif
00011   
00012   #ifdef _MSC_VER
00013     #if _MSC_VER >= 1310
00014       #define TEMPLATE_SPECIALIZATION_SUPPORTED
00015     #endif
00016     
00017     #pragma pointers_to_members(full_generality, multiple_inheritance)
00018   
00019     #include <direct.h>
00020     #include <windows.h>
00021     #include <algorithm>
00022 
00023     #pragma warning (disable : 4251)
00024     #pragma warning (disable : 4100)
00025 
00026   #endif
00027   
00028 #else
00029   #define TEMPLATE_SPECIALIZATION_SUPPORTED
00030   #include <unistd.h>
00031 #endif    
00032 
00033 // Defines and includes for sgi and apple
00034 #ifdef __sgi
00035   #include <math.h>
00036 #else
00037   #include <cmath>
00038   #ifdef __APPLE__
00039     #define sinf sin
00040     #define cosf cos
00041   #endif
00042 #endif  
00043 
00044 #if defined  __APPLE__
00045   # include <gl.h>
00046 #else
00047   # include <GL/gl.h>
00048 #endif 
00049 
00050 #include "CLog.h"
00051 
00052 #endif

Generated on Fri Aug 27 13:16:22 2004 for X3DToolKit by doxygen 1.3.6