summaryrefslogtreecommitdiff
path: root/src/helper/replacements.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/helper/replacements.c')
-rw-r--r--src/helper/replacements.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/helper/replacements.c b/src/helper/replacements.c
index cc0c242a..6b367fa8 100644
--- a/src/helper/replacements.c
+++ b/src/helper/replacements.c
@@ -23,17 +23,10 @@
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
/* DANGER!!!! These must be defined *BEFORE* replacements.h and the malloc() macro!!!! */
#include <stdlib.h>
#include <string.h>
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
/*
* clear_malloc
*
@@ -65,9 +58,12 @@ void *fill_malloc(size_t size)
}
#define IN_REPLACEMENTS_C
-#include "replacements.h"
-
-#include <stdio.h>
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
#ifdef _WIN32
#include <io.h>