Changeset 247 for cpp/common/nonstd.h


Ignore:
Timestamp:
11/07/14 17:51:01 (10 years ago)
Author:
Maciej Komosinski
Message:

Sources support both 32-bit and 64-bit, and more compilers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/common/nonstd.h

    r244 r247  
    5757#endif
    5858
    59 #if defined MACOS || defined __ANDROID__
     59#if defined MACOS || defined __ANDROID__ || defined IPHONE
    6060 #define stricmp(a,b) strcasecmp(a,b)
    6161#endif
     
    8686#ifdef LINUX
    8787 #define GET_APP_HOME "./"
     88 #define GET_APP_RESOURCES "./"
     89#endif
     90
     91#ifdef MACOS
     92#ifdef MACOS_APP_DIR //separate home/resources
     93 #include <string>
     94 std::string getAppHome();
     95 #define GET_APP_HOME getAppHome()
     96#else //old style
     97 #define GET_APP_HOME "./"
     98#endif
    8899 #define GET_APP_RESOURCES "./"
    89100#endif
Note: See TracChangeset for help on using the changeset viewer.