ЗАПИСИ
НОЯБРЬ 25, 2011

Hey.

Just a note. For more info see TargetConditionals.h.

platform.h:

#ifndef __platform_h
  1. #define __platform_h
  2.  
  3. // Load platform specific stuff
  4. #ifdef __APPLE__
  5. # import "TargetConditionals.h"
  6. # ifdef TARGET_OS_IPHONE
  7. #  include "platform/ios/ios_specific_stuff.h"
  8. # elif TARGET_IPHONE_SIMULATOR
  9. #  include "platform/ios/ios_specific_stuff.h"
  10. # else
  11. #  assert "Only iOS platform is supported at the moment (using __APPLE__)"
  12. # endif
  13. #else
  14. #  error "Only iOS platform is supported at the moment (not __APPLE__)"
  15. #endif
  16.  
  17. #endif // __platform_h

Нет комметрариев