/diverses/stuff/work/glslShader-0.0.1/glslPlatform.h

00001 /***************************************************************************
00002  *                                                                         *
00003  *   (c) Art Tevs, MPI Informatik Saarbruecken                             *
00004  *       mailto: <tevs@mpi-sb.mpg.de>                                      *
00005  *                                                                         *
00006  *   This program is free software; you can redistribute it and/or modify  *
00007  *   it under the terms of the GNU General Public License as published by  *
00008  *   the Free Software Foundation; either version 2 of the License, or     *
00009  *   (at your option) any later version.                                   *
00010  *                                                                         *
00011  **************************************************************************/
00012 #ifndef __GLSL_PLATFORM_H_
00013 #define __GLSL_PLATFORM_H_
00014 
00015 /*
00016  * Begin system-specific stuff.
00017  */
00018 #if defined(__BEOS__)
00019 #include <stdlib.h>     /* to get some BeOS-isms */
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) /* tag specifying we're building for DLL runtime support */
00034 #    define GLSLAPI __declspec(dllimport)
00035 #  else /* for use with static link lib build of Win32 edition only */
00036 #    define GLSLAPI extern
00037 #  endif /* _STATIC_MESA support */
00038 #  define GLSLAPIENTRY __stdcall
00039 #else
00040 /* non-Windows compilation */
00041 #  define GLSLAPI extern
00042 #  define GLSLAPIENTRY
00043 #endif /* WIN32 / CYGWIN bracket */
00044 
00045 /* BeOS */
00046 #if (defined(__BEOS__) && defined(__POWERPC__)) || defined(__QUICKDRAW__)
00047 #  define PRAGMA_EXPORT_SUPPORTED               1
00048 #endif
00049 
00050 
00051 /* Windows */
00052 #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__)
00053 #define WIN32_LEAN_AND_MEAN 1
00054 #include <windows.h>
00055 #endif
00056 
00057 
00058 /* Apple Macintosh */
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  * End system-specific stuff.
00069  */
00070 
00071 #ifdef HAVE_CONFIG_H
00072 #       include "config.h"
00073 #endif
00074 
00075 #endif
00076 

Generated on Sat Apr 7 18:49:41 2007 for glslShader by  doxygen 1.5.1