Hey.
Just a note. For more info see TargetConditionals.h.
platform.h:
#ifndef __platform_h
-
#define __platform_h
-
-
// Load platform specific stuff
-
#ifdef __APPLE__
-
# import "TargetConditionals.h"
-
# ifdef TARGET_OS_IPHONE
-
# include "platform/ios/ios_specific_stuff.h"
-
# elif TARGET_IPHONE_SIMULATOR
-
# include "platform/ios/ios_specific_stuff.h"
-
# else
-
# assert "Only iOS platform is supported at the moment (using __APPLE__)"
-
# endif
-
#else
-
# error "Only iOS platform is supported at the moment (not __APPLE__)"
-
#endif
-
-
#endif // __platform_h
Нет комметрариев