diff src/define.h @ 123:ab2a11e72250

more cleanup of #include files. common.h is the only file allowed to include system .h files unprotected by autoconf HAVE_ symbols. define.h is the only other file allowed to include system .h files. define.h is never installed; common.h is installed if we are building the shared library.
author Carl Byington <carl@five-ten-sg.com>
date Tue, 03 Feb 2009 10:59:10 -0800
parents bdb38b434c0a
children 7f747c8c9d02
line wrap: on
line diff
--- a/src/define.h	Mon Feb 02 21:55:48 2009 -0800
+++ b/src/define.h	Tue Feb 03 10:59:10 2009 -0800
@@ -73,6 +73,18 @@
     #include <errno.h>
 #endif
 
+#ifdef HAVE_ICONV_H
+    #include <iconv.h>
+#endif
+
+#ifdef HAVE_REGEX_H
+    #include <regex.h>
+#endif
+
+#ifdef HAVE_GD_H
+    #include <gd.h>
+#endif
+
 
 #define PERM_DIRS 0777
 
@@ -94,7 +106,6 @@
         #error Only MSC and mingw supported for Windows
     #endif
     #ifndef __MINGW32__
-        #define off_t      __int64
         #define size_t     __int64
     #endif
     #ifndef UINT64_MAX