25 #ifndef SFML_CONFIG_HPP
26 #define SFML_CONFIG_HPP
32 #define SFML_VERSION_MAJOR 2
33 #define SFML_VERSION_MINOR 2
34 #define SFML_VERSION_PATCH 0
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
170 typedef signed char Int8;
171 typedef unsigned char Uint8;
174 typedef signed short Int16;
175 typedef unsigned short Uint16;
178 typedef signed int Int32;
179 typedef unsigned int Uint32;
182 #if defined(_MSC_VER)
183 typedef signed __int64 Int64;
184 typedef unsigned __int64 Uint64;
186 typedef signed long long Int64;
187 typedef unsigned long long Uint64;
193 #endif // SFML_CONFIG_HPP