changeset 1655:de4b88ee7ad8

Only include compat.h when building the dwcompat shared library.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 10 Apr 2012 02:58:28 +0000
parents 3d4066aab4e0
children 01f59ba51e7f
files dwcompat.h
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dwcompat.h	Mon Apr 09 21:06:50 2012 +0000
+++ b/dwcompat.h	Tue Apr 10 02:58:28 2012 +0000
@@ -5,7 +5,9 @@
 
 /* This header includes and defines everything needed for a given OS/compiler */
 #if defined(__UNIX__) || defined(__MAC__)
-#include "config.h"
+#ifdef BUILD_DLL
+#include "compat.h"
+#endif
 
 /* Attempt to include 64 bit file functions on various unix flavors */
 #ifndef _FILE_OFFSET_BITS