]> granicus.if.org Git - libexpat/commitdiff
loadlibrary.c: Address -Wempty-translation-unit
authorSebastian Pipping <sebastian@pipping.org>
Wed, 2 Aug 2017 11:34:46 +0000 (13:34 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Wed, 2 Aug 2017 11:34:46 +0000 (13:34 +0200)
expat/lib/loadlibrary.c

index 31b7f312b090c7171e569827d40f4620158386f9..ffce868399b3357c31549da1aade7423a2ef8ede 100644 (file)
@@ -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) */