diff dwcompat.h @ 2160:07f1366a724c

Rename config.h(.in) to dwconfig.h and install it with dwcompat. Building modules that use dwcompat requires some of the defines in dwconfig.h. On some platforms without it the opendir headers are not included and cause build failures. Unix (Linux, BSD, Solaris and Mac) are primarily affected.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 29 Sep 2020 22:49:04 +0000
parents 4bfcad4986ff
children d871f636b46e
line wrap: on
line diff
--- a/dwcompat.h	Tue Sep 29 04:06:20 2020 +0000
+++ b/dwcompat.h	Tue Sep 29 22:49:04 2020 +0000
@@ -5,9 +5,7 @@
 
 /* This header includes and defines everything needed for a given OS/compiler */
 #if defined(__UNIX__) || defined(__MAC__)
-#ifdef BUILD_DLL
-#include "config.h"
-#endif
+#include "dwconfig.h"
 
 /* Attempt to include 64 bit file functions on various unix flavors */
 #ifndef _FILE_OFFSET_BITS