Loading...
Searching...
No Matches
Go to the documentation of this file.
31#define SFML_VERSION_MAJOR 3
32#define SFML_VERSION_MINOR 0
33#define SFML_VERSION_PATCH 1
34#define SFML_VERSION_IS_RELEASE true
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
117#if (defined(_MSVC_LANG) && _MSVC_LANG < 201703L) || (!defined(_MSVC_LANG) && __cplusplus < 201703L)
118#error "Enable C++17 or newer for your compiler (e.g. -std=c++17 for GCC/Clang or /std:c++17 for MSVC)"
135#if !defined(SFML_STATIC)
137#if defined(SFML_SYSTEM_WINDOWS)
140#define SFML_API_EXPORT __declspec(dllexport)
141#define SFML_API_IMPORT __declspec(dllimport)
146#pragma warning(disable : 4251)
147#pragma warning(disable : 4275)
153#define SFML_API_EXPORT __attribute__((__visibility__("default")))
154#define SFML_API_IMPORT __attribute__((__visibility__("default")))
161#define SFML_API_EXPORT
162#define SFML_API_IMPORT