00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef VRS_SDL_CONFIG_H
00019 #define VRS_SDL_CONFIG_H
00020
00021 #include <vrs/config.h>
00022
00023 #ifdef WIN32
00024 #include <SDL.h>
00025 #else
00026 #include <SDL/SDL.h>
00027 #endif
00028
00029 #ifndef WIN32
00030
00031 # define VRS_SDL_API
00032
00033 #else // WIN32
00034
00035
00036 # ifdef VRS_SDL_EXPORTS
00037 # define VRS_SDL_API __declspec(dllexport)
00038 # else // VRS_SDL_EXPORTS
00039 # define VRS_SDL_API __declspec(dllimport)
00040 # endif // VRS_SDL_EXPORTS
00041
00042
00043 #ifndef VRS_SDL_EXPORTS
00044 # if defined(_MSC_VER) && (_MSC_VER >= 1300) // visual studio >= 7.0
00045 # ifdef VRS_VERSION_RELEASE
00046 # pragma comment(lib, "vrs_sdl.lib")
00047 # elif defined VRS_VERSION_DEBUG
00048 # pragma comment(lib, "vrs_sdl_debug.lib")
00049 # elif defined VRS_VERSION_DEBUG_OPTIMIZED
00050 # pragma comment(lib, "vrs_sdl_debug_optimized.lib")
00051 # else
00052 # error "the build configuration macro is missing"
00053 # endif //VRS_VERSION_*
00054 # else // visual studio < 7.0
00055 # ifdef NDEBUG
00056 # pragma comment(lib, "vrs_sdl_vc60.lib")
00057 # else // NDEBUG
00058 # pragma comment(lib, "vrs_sdl_vc60_debug.lib")
00059 # endif // NDEBUG
00060 # endif // visual studio >= 7.0
00061 #endif // VRS_SDL_EXPORTS
00062
00063 # pragma comment(lib, "SDL.lib")
00064 # pragma comment(lib, "SDLmain.lib")
00065
00066 #endif // WIN32
00067
00068 #endif // VRS_SDL_CONFIG_H