pmt: fix all NDK build issues.

This commit is contained in:
2024-12-14 18:18:54 +03:00
parent 3059e42142
commit 9b3618fdbe
6 changed files with 200 additions and 18 deletions

View File

@@ -29,6 +29,11 @@
# include <stdio.h>
#endif
#ifdef REPLACE_NL_LANGINFO
#undef REPLACE_NL_LANGINFO
#define REPLACE_NL_LANGINFO 0
#endif
#if REPLACE_NL_LANGINFO && !NL_LANGINFO_MTSAFE
# if AVOID_ANY_THREADS

View File

@@ -28,16 +28,8 @@ ped_set_architecture ()
if (ped_architecture)
return;
#ifdef linux
extern PedArchitecture ped_linux_arch;
const PedArchitecture* arch = &ped_linux_arch;
#elif defined(__BEOS__)
extern PedArchitecture ped_beos_arch;
const PedArchitecture* arch = &ped_beos_arch;
#else
extern PedArchitecture ped_gnu_arch;
const PedArchitecture* arch = &ped_gnu_arch;
#endif
ped_architecture = arch;
}