Move dlfcn.h availability check to platform_common.h (#1134)

This commit is contained in:
YAMAMOTO Takashi
2022-04-28 13:31:28 +09:00
committed by GitHub
parent 814a76ee89
commit d9d0777051
3 changed files with 25 additions and 10 deletions

View File

@ -41,6 +41,12 @@ typedef pthread_t korp_thread;
#define os_printf printf
#define os_vprintf vprintf
#if defined(CONFIG_LIBC_DLFCN)
#define BH_HAS_DLFCN 1
#else
#define BH_HAS_DLFCN 0
#endif
/* On NuttX, time_t is uint32_t */
#define BH_TIME_T_MAX 0xffffffff