25 #ifndef SFML_CONFIG_HPP
26 #define SFML_CONFIG_HPP
32 #define SFML_VERSION_MAJOR 2
33 #define SFML_VERSION_MINOR 5
34 #define SFML_VERSION_PATCH 1
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
89 #elif defined(__OpenBSD__)
92 #define SFML_SYSTEM_OPENBSD
97 #error This UNIX operating system is not supported by SFML library
104 #error This operating system is not supported by SFML library
122 #if !defined(SFML_STATIC)
124 #if defined(SFML_SYSTEM_WINDOWS)
127 #define SFML_API_EXPORT __declspec(dllexport)
128 #define SFML_API_IMPORT __declspec(dllimport)
133 #pragma warning(disable: 4251)
143 #define SFML_API_EXPORT __attribute__ ((__visibility__ ("default")))
144 #define SFML_API_IMPORT __attribute__ ((__visibility__ ("default")))
149 #define SFML_API_EXPORT
150 #define SFML_API_IMPORT
159 #define SFML_API_EXPORT
160 #define SFML_API_IMPORT
176 #if defined(SFML_NO_DEPRECATED_WARNINGS)
179 #define SFML_DEPRECATED
181 #elif defined(_MSC_VER)
186 #define SFML_DEPRECATED __declspec(deprecated)
188 #elif defined(__GNUC__)
191 #define SFML_DEPRECATED __attribute__ ((deprecated))
197 #pragma message("SFML_DEPRECATED is not supported for your compiler, please contact the SFML team")
198 #define SFML_DEPRECATED
213 typedef signed char Int8;
214 typedef unsigned char Uint8;
217 typedef signed short Int16;
218 typedef unsigned short Uint16;
221 typedef signed int Int32;
222 typedef unsigned int Uint32;
225 #if defined(_MSC_VER)
226 typedef signed __int64 Int64;
227 typedef unsigned __int64 Uint64;
229 typedef signed long long Int64;
230 typedef unsigned long long Uint64;