fix libintl for android r26b (#3172)

pull/3175/head
ruki 10 months ago committed by GitHub
parent df9fbd9a8d
commit 67a84e98bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      packages/l/libintl/port/0.21/xmake.lua
  2. 6
      packages/l/libintl/port/0.22.3/xmake.lua

@ -229,7 +229,11 @@ void test() {environ.foo = 1;}]], {includes = is_plat("windows") and "stdlib.h"
-- config.h variables -- config.h variables
configvar_check_ctypes("HAVE_STDINT_H_WITH_UINTMAX", "uintmax_t", {includes = "stdint.h"}) configvar_check_ctypes("HAVE_STDINT_H_WITH_UINTMAX", "uintmax_t", {includes = "stdint.h"})
configvar_check_ctypes("HAVE_UINTMAX_T", "uintmax_t", {includes = "stdint.h"}) configvar_check_ctypes("HAVE_UINTMAX_T", "uintmax_t", {includes = "stdint.h"})
configvar_check_links("HAVE_PTHREAD_API", "pthread") if is_plat("android") then
configvar_check_cfuncs("HAVE_PTHREAD_API", "pthread_create", {includes = "pthread.h"})
else
configvar_check_links("HAVE_PTHREAD_API", "pthread")
end
configvar_check_csnippets("HAVE_ALLOCA", [[ configvar_check_csnippets("HAVE_ALLOCA", [[
#ifdef __GNUC__ #ifdef __GNUC__
# define alloca __builtin_alloca # define alloca __builtin_alloca

@ -243,7 +243,11 @@ end
end end
configvar_check_ctypes("HAVE_STDINT_H_WITH_UINTMAX", "uintmax_t", {includes = "stdint.h"}) configvar_check_ctypes("HAVE_STDINT_H_WITH_UINTMAX", "uintmax_t", {includes = "stdint.h"})
configvar_check_ctypes("HAVE_UINTMAX_T", "uintmax_t", {includes = "stdint.h"}) configvar_check_ctypes("HAVE_UINTMAX_T", "uintmax_t", {includes = "stdint.h"})
configvar_check_links("HAVE_PTHREAD_API", "pthread") if is_plat("android") then
configvar_check_cfuncs("HAVE_PTHREAD_API", "pthread_create", {includes = "pthread.h"})
else
configvar_check_links("HAVE_PTHREAD_API", "pthread")
end
configvar_check_ctypes("HAVE_PTHREAD_RWLOCK", "pthread_rwlock_t", {includes = "pthread.h"}) configvar_check_ctypes("HAVE_PTHREAD_RWLOCK", "pthread_rwlock_t", {includes = "pthread.h"})
configvar_check_cfuncs("HAVE_THRD_CREATE", "thrd_create", {includes = "threads.h"}) configvar_check_cfuncs("HAVE_THRD_CREATE", "thrd_create", {includes = "threads.h"})
configvar_check_csnippets("HAVE_ALLOCA", [[ configvar_check_csnippets("HAVE_ALLOCA", [[

Loading…
Cancel
Save