Prerequisites: differentiate MacOS from iOS/tvOS
TargetConditionals.h is exposed on every Apple Darwin platforms and provides defines to signal the kind of underlying device.
This commit is contained in:
parent
e5ec90a6f9
commit
ccb36e2e4c
|
|
@ -25,6 +25,10 @@
|
|||
#ifndef NAZARA_PREREQUISITES_HPP
|
||||
#define NAZARA_PREREQUISITES_HPP
|
||||
|
||||
#if defined(__APPLE__)
|
||||
#include <TargetConditionals.h>
|
||||
#endif
|
||||
|
||||
// Try to identify the compiler
|
||||
#if defined(__BORLANDC__)
|
||||
#define NAZARA_COMPILER_BORDLAND
|
||||
|
|
@ -130,11 +134,11 @@
|
|||
|
||||
#define NAZARA_EXPORT __attribute__((visibility ("default")))
|
||||
#define NAZARA_IMPORT __attribute__((visibility ("default")))
|
||||
#elif defined(__APPLE__) && defined(__MACH__)
|
||||
#elif defined(__APPLE__) && !TARGET_OS_IPHONE
|
||||
#define NAZARA_PLATFORM_DESKTOP
|
||||
#define NAZARA_PLATFORM_MACOS
|
||||
#define NAZARA_PLATFORM_POSIX
|
||||
|
||||
|
||||
#define NAZARA_EXPORT __attribute__((visibility ("default")))
|
||||
#define NAZARA_IMPORT __attribute__((visibility ("default")))
|
||||
#else
|
||||
|
|
|
|||
Loading…
Reference in New Issue