From 889ee28ed562af4344cba27f17076c88ec099c74 Mon Sep 17 00:00:00 2001 From: Jean-Claude Beaudoin Date: Tue, 27 Sep 2016 01:43:40 -0400 Subject: Rein in unintended external functions on Windows. --- libtcc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libtcc.c') diff --git a/libtcc.c b/libtcc.c index d367ed1..827d3c0 100644 --- a/libtcc.c +++ b/libtcc.c @@ -117,7 +117,7 @@ static void tcc_add_systemdir(TCCState *s) #endif #ifndef CONFIG_TCC_STATIC -void dlclose(void *p) +static void dlclose(void *p) { FreeLibrary((HMODULE)p); } @@ -135,7 +135,7 @@ BOOL WINAPI DllMain (HINSTANCE hDll, DWORD dwReason, LPVOID lpReserved) /********************************************************/ /* copy a string and truncate it. */ -PUB_FUNC char *pstrcpy(char *buf, int buf_size, const char *s) +ST_FUNC char *pstrcpy(char *buf, int buf_size, const char *s) { char *q, *q_end; int c; -- cgit v1.3.1