summaryrefslogtreecommitdiff
path: root/libs/luajit-cmake/luauser.h
blob: 20ef7629fc1c07621978522d1e9e7aeba3fcc2d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef LUA_LJDIR
#if defined(__ANDROID__)
  #if __ANDROID_API__==19
     #if defined(lua_getlocaledecpoint)
     #undef lua_getlocaledecpoint
     #endif
  
     #define lua_getlocaledecpoint()        ('.')
  #endif
  #if __ANDROID_API__ < 25
     #define fseeko fseek
     #define ftello ftell
  #endif
#endif
#if defined(__APPLE__) && defined(__MACH__)
  /* Apple OSX and iOS (Darwin). ------------------------------ */
  #include <TargetConditionals.h>
  #if (TARGET_IPHONE_SIMULATOR == 1 || TARGET_OS_IPHONE == 1)
    /* iOS in Xcode simulator */    /* iOS on iPhone, iPad, etc. */
    #define system(X)  0
  #endif
#endif
#else
#pragma clang diagnostic ignored "-Wunused-function"
#endif