From: Sebastian Pipping Date: Wed, 2 Aug 2017 11:34:46 +0000 (+0200) Subject: loadlibrary.c: Address -Wempty-translation-unit X-Git-Tag: R_2_2_3~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cf5c6ffded5c318c0319b9e14bb86dcc10ae4afd;p=libexpat loadlibrary.c: Address -Wempty-translation-unit --- diff --git a/expat/lib/loadlibrary.c b/expat/lib/loadlibrary.c index 31b7f312..ffce8683 100644 --- a/expat/lib/loadlibrary.c +++ b/expat/lib/loadlibrary.c @@ -132,4 +132,10 @@ HMODULE _Expat_LoadLibrary(LPCTSTR filename) return hModule; } +#else /* defined(_WIN32) */ + +/* ISO C requires a translation unit to contain at least one declaration + [-Wempty-translation-unit] */ +typedef int _TRANSLATION_UNIT_LOAD_LIBRARY_C_NOT_EMTPY; + #endif /* defined(_WIN32) */