aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-04-15 14:01:57 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-04-15 14:01:57 +0000
commiteb54d34becbe1b3541484964d376dd294416cee3 (patch)
tree410724005ddcbad0710c0c99c6083437a0c1cf8e /src
parent4b1203d4c9051442a0f5544421886df7ac67ff1d (diff)
If MALLOCDEBUG, include the lib's setup.h here so that the proper defines
are set before all system headers, as otherwise we get compiler warnings on my Solaris at least.
Diffstat (limited to 'src')
-rw-r--r--src/setup.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/setup.h b/src/setup.h
index d85f85a35..65eef4b4a 100644
--- a/src/setup.h
+++ b/src/setup.h
@@ -23,8 +23,6 @@
* $Id$
***************************************************************************/
-#include <stdio.h>
-
#if !defined(WIN32) && defined(__WIN32__)
/* Borland fix */
#define WIN32
@@ -50,6 +48,15 @@
#endif
#endif
+#ifdef MALLOCDEBUG
+/* This is an ugly hack for MALLOCDEBUG conditions only. We need to include
+ the file here, since it might set the _FILE_OFFSET_BITS define, which must
+ be set BEFORE all normal system headers. */
+#include "../lib/setup.h"
+#endif
+
+#include <stdio.h>
+
#ifndef OS
#define OS "unknown"
#endif