comparison 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
comparison
equal deleted inserted replaced
2159:48172881415c 2160:07f1366a724c
3 #ifndef _DWCOMPAT_H 3 #ifndef _DWCOMPAT_H
4 #define _DWCOMPAT_H 4 #define _DWCOMPAT_H
5 5
6 /* This header includes and defines everything needed for a given OS/compiler */ 6 /* This header includes and defines everything needed for a given OS/compiler */
7 #if defined(__UNIX__) || defined(__MAC__) 7 #if defined(__UNIX__) || defined(__MAC__)
8 #ifdef BUILD_DLL 8 #include "dwconfig.h"
9 #include "config.h"
10 #endif
11 9
12 /* Attempt to include 64 bit file functions on various unix flavors */ 10 /* Attempt to include 64 bit file functions on various unix flavors */
13 #ifndef _FILE_OFFSET_BITS 11 #ifndef _FILE_OFFSET_BITS
14 #define _FILE_OFFSET_BITS 64 12 #define _FILE_OFFSET_BITS 64
15 #endif 13 #endif