mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-10 02:08:20 +00:00
df0f11c95b
* Update CMake configuration for easier maintenance * Incorrect casing fix * Move package requirement * Update CTest linking * Add logs to the CMake * Add linking for common libraries Added linking for common libraries in tests subdirectory. * Move test subdirectory higher up for some reason * Whitespace a log removal Missed new line * Add dCommon to dChatFilter * Update library output dir * Correct libBcrypt * Further refactor CMake behaviour * Repair bad comments and update library defines * Revert to old include directory method * Implement platform defines * Add missing include Mac needs a specific include for defining platform. Does not compile without this. Co-authored-by: EmosewaMC <39972741+EmosewaMC@users.noreply.github.com>
29 lines
779 B
C
29 lines
779 B
C
#pragma once
|
|
|
|
#if defined(_WIN32)
|
|
#define DARKFLAME_PLATFORM_WIN32
|
|
#elif defined(__APPLE__) && defined(__MACH__)
|
|
#include <TargetConditionals.h>
|
|
#if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR
|
|
#define DARKFLAME_PLATFORM_IOS
|
|
#elif TARGET_OS_MAC
|
|
#define DARKFLAME_PLATFORM_MACOS
|
|
#else
|
|
#error unknown Apple operating system
|
|
#endif
|
|
#elif defined(__unix__)
|
|
#define DARKFLAME_PLATFORM_UNIX
|
|
#if defined(__ANDROID__)
|
|
#define DARKFLAME_PLATFORM_ANDROID
|
|
#elif defined(__linux__)
|
|
#define DARKFLAME_PLATFORM_LINUX
|
|
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
|
#define DARKFLAME_PLATFORM_FREEBSD
|
|
#elif defined(__CYGWIN__)
|
|
#define DARKFLAME_PLATFORM_CYGWIN
|
|
#else
|
|
#error unknown unix operating system
|
|
#endif
|
|
#else
|
|
#error unknown operating system
|
|
#endif |