00001
00007 #ifndef _COMPILERPRAGMAS_H
00008 #define _COMPILERPRAGMAS_H
00009
00010 #if defined(__cplusplus)
00011 extern "C" {
00012 #endif
00013
00015 #define LOCAL static
00016
00017 #define GLOBAL
00018
00019 #if defined(__GNUC__)
00020 #if defined(__cplusplus)
00021
00022 #define __attribute__(X)
00023 #endif
00024
00025 #if (defined(_WIN32) || defined(__CYGWIN__))
00026
00027
00028
00029
00030
00031
00032
00033 #define EXPORT
00034 #else
00035 #define EXPORT
00036 #endif
00037
00038 #else
00039 #if defined(__SUNPRO_C)
00040
00042 #define __attribute__(X)
00043 #define EXPORT
00044
00045 #else
00046 #if defined(_MSVC)
00047
00048 #define __attribute__(X)
00049 #define EXPORT __declspec(dllexport)
00050
00051 #else
00052
00053 #if defined(__MWERKS__)
00054 #define __attribute__(X)
00055 #define EXPORT
00056 #else
00057
00058
00059 #warning "Please add compiler details to compilerpragmas.h"
00060 #define __attribute__(X)
00061 #define EXPORT
00062
00063 #endif
00064 #endif
00065 #endif
00066 #endif
00067
00068 #if defined(__cplusplus)
00069 }
00070 #endif
00071
00072 #endif