From be1c7e50e1e8809ea56f2c9d472eccd8ffd73a97 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 04:57:58 +0200 Subject: Adding upstream version 1.44.3. Signed-off-by: Daniel Baumann --- fluent-bit/lib/luajit-cmake/luauser.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 fluent-bit/lib/luajit-cmake/luauser.h (limited to 'fluent-bit/lib/luajit-cmake/luauser.h') diff --git a/fluent-bit/lib/luajit-cmake/luauser.h b/fluent-bit/lib/luajit-cmake/luauser.h new file mode 100644 index 00000000..20ef7629 --- /dev/null +++ b/fluent-bit/lib/luajit-cmake/luauser.h @@ -0,0 +1,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 + #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 + -- cgit v1.2.3