00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef __GLSL_PLATFORM_H_
00013 #define __GLSL_PLATFORM_H_
00014
00015
00016
00017
00018 #if defined(__BEOS__)
00019 #include <stdlib.h>
00020 #endif
00021
00022 #if !defined(OPENSTEP) && (defined(NeXT) || defined(NeXT_PDO))
00023 #define OPENSTEP
00024 #endif
00025
00026 #if defined(_WIN32) && !defined(__WIN32__) && !defined(__CYGWIN__)
00027 #define __WIN32__
00028 #endif
00029
00030 #if !defined(OPENSTEP) && (defined(__WIN32__) && !defined(__CYGWIN__))
00031 # if defined(_MSC_VER) && defined(BUILD_GLSL32)
00032 # define GLSLAPI __declspec(dllexport)
00033 # elif defined(_MSC_VER) && defined(_DLL)
00034 # define GLSLAPI __declspec(dllimport)
00035 # else
00036 # define GLSLAPI extern
00037 # endif
00038 # define GLSLAPIENTRY __stdcall
00039 #else
00040
00041 # define GLSLAPI extern
00042 # define GLSLAPIENTRY
00043 #endif
00044
00045
00046 #if (defined(__BEOS__) && defined(__POWERPC__)) || defined(__QUICKDRAW__)
00047 # define PRAGMA_EXPORT_SUPPORTED 1
00048 #endif
00049
00050
00051
00052 #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__)
00053 #define WIN32_LEAN_AND_MEAN 1
00054 #include <windows.h>
00055 #endif
00056
00057
00058
00059 #if defined(macintosh) && PRAGMA_IMPORT_SUPPORTED
00060 #pragma import on
00061 #endif
00062
00063 #if defined(PRAGMA_EXPORT_SUPPORTED)
00064 #pragma export on
00065 #endif
00066
00067
00068
00069
00070
00071 #ifdef HAVE_CONFIG_H
00072 # include "config.h"
00073 #endif
00074
00075 #endif
00076