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

@ -65,6 +65,14 @@ BH_VPRINTF(const char *format, va_list ap);
#define NULL (void *)0
#endif
#if !defined(BH_HAS_DLFCN)
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE)
#define BH_HAS_DLFCN 1
#else
#define BH_HAS_DLFCN 0
#endif
#endif
#ifndef __cplusplus
#ifndef true