aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/tcc.h b/tcc.h
index 8e6b0a5..885951c 100644
--- a/tcc.h
+++ b/tcc.h
@@ -47,7 +47,9 @@
# include <sys/time.h>
# include <sys/ucontext.h>
# include <sys/mman.h>
-# include <dlfcn.h>
+# ifndef CONFIG_TCC_STATIC
+# include <dlfcn.h>
+# endif
#else
# include <windows.h>
# include <sys/timeb.h>
@@ -134,10 +136,6 @@
#define CONFIG_TCC_BCHECK /* enable bound checking code */
#endif
-#if defined(_WIN32) && !defined(TCC_TARGET_PE)
-#define CONFIG_TCC_STATIC
-#endif
-
/* define it to include assembler support */
#if !defined(TCC_TARGET_ARM) && !defined(TCC_TARGET_C67)
#define CONFIG_TCC_ASM