SFML - Simple and Fast Multimedia Library
SFML
25 #ifndef SFML_CONFIG_HPP
26 #define SFML_CONFIG_HPP
32 #define SFML_VERSION_MAJOR 2
33 #define SFML_VERSION_MINOR 4
34 #define SFML_VERSION_PATCH 2
44 #define SFML_SYSTEM_WINDOWS
49 #elif defined(__APPLE__) && defined(__MACH__)
52 #include "TargetConditionals.h"
54 #if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR
57 #define SFML_SYSTEM_IOS
62 #define SFML_SYSTEM_MACOS
67 #error This Apple operating system is not supported by SFML library
71 #elif defined(__unix__)
74 #if defined(__ANDROID__)
77 #define SFML_SYSTEM_ANDROID
79 #elif defined(__linux__)
82 #define SFML_SYSTEM_LINUX
84 #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
87 #define SFML_SYSTEM_FREEBSD
92 #error This UNIX operating system is not supported by SFML library
99 #error This operating system is not supported by SFML library
117 #if !defined(SFML_STATIC)
119 #if defined(SFML_SYSTEM_WINDOWS)
122 #define SFML_API_EXPORT __declspec(dllexport)
123 #define SFML_API_IMPORT __declspec(dllimport)
128 #pragma warning(disable: 4251)
132 #else // Linux, FreeBSD, Mac OS X
138 #define SFML_API_EXPORT __attribute__ ((__visibility__ ("default")))
139 #define SFML_API_IMPORT __attribute__ ((__visibility__ ("default")))
144 #define SFML_API_EXPORT
145 #define SFML_API_IMPORT
154 #define SFML_API_EXPORT
155 #define SFML_API_IMPORT
171 #if defined(SFML_NO_DEPRECATED_WARNINGS)
174 #define SFML_DEPRECATED
176 #elif defined(_MSC_VER)
181 #define SFML_DEPRECATED __declspec(deprecated)
183 #elif defined(__GNUC__)
186 #define SFML_DEPRECATED __attribute__ ((deprecated))
192 #pragma message("SFML_DEPRECATED is not supported for your compiler, please contact the SFML team")
193 #define SFML_DEPRECATED
208 typedef signed char Int8;
209 typedef unsigned char Uint8;
212 typedef signed short Int16;
213 typedef unsigned short Uint16;
216 typedef signed int Int32;
217 typedef unsigned int Uint32;
220 #if defined(_MSC_VER)
221 typedef signed __int64 Int64;
222 typedef unsigned __int64 Uint64;
224 typedef signed long long Int64;
225 typedef unsigned long long Uint64;
231 #endif // SFML_CONFIG_HPP