Add platform definitions for other Apple operating systems.
This commit is contained in:
parent
0f86647741
commit
c17df6aca2
|
@ -114,7 +114,18 @@ extern "C" {
|
|||
/* Mac OS X (client) 10.x (or server 1.x/10.x) - gcc or Metrowerks MachO compilers */
|
||||
# define MAC_OS_X
|
||||
# ifndef PLATFORM_NAME
|
||||
# define PLATFORM_NAME "Mac OS X"
|
||||
# include "TargetConditionals.h"
|
||||
# if TARGET_OS_IOS
|
||||
# define PLATFORM_NAME "Apple iOS"
|
||||
# elif TARGET_OS_MAC
|
||||
# define PLATFORM_NAME "Apple macOS"
|
||||
# elif TARGET_OS_TV
|
||||
# define PLATFORM_NAME "Apple tvOS"
|
||||
# elif TARGET_OS_WATCH
|
||||
# define PLATFORM_NAME "Apple watchOS"
|
||||
# else
|
||||
# define PLATFORM_NAME "Apple Unknown OS"
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue