25#ifndef SFML_CONFIG_HPP
26#define SFML_CONFIG_HPP
32#define SFML_VERSION_MAJOR 2
33#define SFML_VERSION_MINOR 6
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
94 #elif defined(__NetBSD__)
97 #define SFML_SYSTEM_NETBSD
102 #error This UNIX operating system is not supported by SFML library
109 #error This operating system is not supported by SFML library
127#if !defined(SFML_STATIC)
129 #if defined(SFML_SYSTEM_WINDOWS)
132 #define SFML_API_EXPORT __declspec(dllexport)
133 #define SFML_API_IMPORT __declspec(dllimport)
138 #pragma warning(disable: 4251)
148 #define SFML_API_EXPORT __attribute__ ((__visibility__ ("default")))
149 #define SFML_API_IMPORT __attribute__ ((__visibility__ ("default")))
154 #define SFML_API_EXPORT
155 #define SFML_API_IMPORT
164 #define SFML_API_EXPORT
165 #define SFML_API_IMPORT
181#if defined(SFML_NO_DEPRECATED_WARNINGS)
184 #define SFML_DEPRECATED
186#elif defined(_MSC_VER)
191 #define SFML_DEPRECATED __declspec(deprecated)
193#elif defined(__GNUC__)
196 #define SFML_DEPRECATED __attribute__ ((deprecated))
202 #pragma message("SFML_DEPRECATED is not supported for your compiler, please contact the SFML team")
203 #define SFML_DEPRECATED
218 typedef signed char Int8;
219 typedef unsigned char Uint8;
222 typedef signed short Int16;
223 typedef unsigned short Uint16;
226 typedef signed int Int32;
227 typedef unsigned int Uint32;
230 #if defined(_MSC_VER)
231 typedef signed __int64 Int64;
232 typedef unsigned __int64 Uint64;
234 #if defined(__clang__)
235 #pragma clang diagnostic push
236 #pragma clang diagnostic ignored "-Wc++11-long-long"
238 typedef signed long long Int64;
239 typedef unsigned long long Uint64;
240 #if defined(__clang__)
241 #pragma clang diagnostic pop