Unconditionally include stdlib.h.
authorChristoph Mallon <christoph.mallon@gmx.de>
Fri, 28 Nov 2008 15:08:27 +0000 (15:08 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Fri, 28 Nov 2008 15:08:27 +0000 (15:08 +0000)
[r24123]

27 files changed:
include/libfirm/adt/xmalloc.h
ir/adt/array.c
ir/adt/pdeq.c
ir/adt/xmalloc.c
ir/ana/analyze_irg_args.c
ir/ana/callgraph.c
ir/ana/irloop.c
ir/ana/irscc.c
ir/ana/phiclass.c
ir/be/besched.c
ir/be/mips/mips_scheduler.c
ir/debug/debugger.c
ir/ir/irarch.c
ir/ir/irdump.c
ir/ir/irdumptxt.c
ir/ir/irgwalk.c
ir/libcore/lc_opts.c
ir/libcore/lc_opts_enum.c
ir/lower/lower_dw.c
ir/stat/firmstat.c
ir/stat/pattern_dmp.c
ir/tr/type.c
ir/tr/typewalk.c
ir/tv/fltcalc.c
ir/tv/strcalc.c
ir/tv/tv.c
win32/config.h

index 0d292ca..d9d8d75 100644 (file)
@@ -91,9 +91,7 @@ char *xstrdup(const char *str);
 
 
 /* Includes for alloca() */
-#if defined(__FreeBSD__)
-#include <stdlib.h>
-#elif defined(_WIN32)
+#ifdef _WIN32
 #include <malloc.h>
 #endif
 #ifdef HAVE_ALLOCA_H
index ad721ad..84674e3 100644 (file)
@@ -26,9 +26,7 @@
 
 #include "config.h"
 
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
 
 #include "array_t.h"
 #include "xmalloc.h"
index fd73298..09bf872 100644 (file)
@@ -29,9 +29,7 @@
 #ifdef HAVE_STDIO_H
 # include <stdio.h>
 #endif
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
 #ifdef HAVE_STRING_H
 # include <string.h>
 #endif
index 902779e..79d7a63 100644 (file)
@@ -31,9 +31,7 @@
 #ifdef HAVE_STRING_H
 # include <string.h>
 #endif
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
 
 #include "xmalloc.h"
 #include "error.h"
index af364c2..3054756 100644 (file)
@@ -25,9 +25,7 @@
  */
 #include "config.h"
 
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
 
 #include "irouts.h"
 #include "irnode_t.h"
index 78b8add..3351160 100644 (file)
@@ -29,9 +29,7 @@
 #ifdef HAVE_STRING_H
 # include <string.h>
 #endif
-# ifdef HAVE_STDLIB_H
 #include <stdlib.h>
-#endif
 
 #include "callgraph.h"
 
index 2f655a6..21aef6d 100644 (file)
@@ -29,9 +29,7 @@
 #ifdef HAVE_STRING_H
 # include <string.h>
 #endif
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
 
 #include "irloop_t.h"
 #include "irprog_t.h"
index 931ad3f..7c3d8ab 100644 (file)
@@ -32,9 +32,7 @@
 #ifdef HAVE_STRING_H
 # include <string.h>
 #endif
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
 
 #include "irloop_t.h"
 
index 85c5e6e..421cef9 100644 (file)
@@ -26,9 +26,7 @@
  */
 #include "config.h"
 
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
 
 #include "irnode.h"
 #include "debug.h"
index 0a84ac4..07c2ab0 100644 (file)
@@ -25,9 +25,7 @@
  */
 #include "config.h"
 
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
 
 #include "impl.h"
 #include "irprintf.h"
index 9eb93c8..156d056 100644 (file)
  */
 #include "config.h"
 
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
 #include "mips_scheduler.h"
 
 #include "../besched_t.h"
index 9117378..313dc11 100644 (file)
 #ifdef _WIN32
 #define WIN32_LEAN_AND_MEAN
 #include <windows.h>
-
 #endif
 
-#ifdef HAVE_STDLIB_H
 #include <stdlib.h>
-#endif
-
 #include <stdio.h>
 #include <signal.h>
 
index a3b7413..387310f 100644 (file)
  */
 #include "config.h"
 
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
-
+#include <stdlib.h>
 #include <assert.h>
 
 #include "irnode_t.h"
index 88d42d6..9d09826 100644 (file)
@@ -28,9 +28,7 @@
 #ifdef HAVE_STRING_H
 #include <string.h>
 #endif
-#ifdef HAVE_STDLIB_H
 #include <stdlib.h>
-#endif
 #include <stdarg.h>
 
 #include "firm_common_t.h"
index b5fdb42..9a2df21 100644 (file)
 #ifdef HAVE_STRING_H
 #include <string.h>
 #endif
-#ifdef HAVE_STDLIB_H
 #include <stdlib.h>
-#endif
-
 #include <stdarg.h>
 
 #include "irdump_t.h"
index 7a32f7c..78daade 100644 (file)
@@ -29,9 +29,7 @@
  */
 #include "config.h"
 
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
 
 #include "irnode_t.h"
 #include "irgraph_t.h"
index f55f5e3..4d6b205 100644 (file)
 
 #include <stdio.h>
 #include <stdarg.h>
+#include <stdlib.h>
 #include <string.h>
 #include <ctype.h>
 
-#if defined(__FreeBSD__)
-#include <stdlib.h>
-#elif defined(_WIN32)
+#ifdef _WIN32
 #include <malloc.h>
 #endif
 #ifdef HAVE_ALLOCA_H
index cb66e54..75ce0ff 100644 (file)
@@ -15,9 +15,7 @@
 #include <stdio.h>
 #include <string.h>
 
-#if defined(__FreeBSD__)
-#include <stdlib.h>
-#elif defined(_WIN32)
+#ifdef _WIN32
 #include <malloc.h>
 #endif
 #ifdef HAVE_ALLOCA_H
index fc1d2cb..464f5a3 100644 (file)
 #ifdef HAVE_STRING_H
 # include <string.h>
 #endif
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
-
+#include <stdlib.h>
 #include <assert.h>
 
 #include "error.h"
index 94e53bf..623fd54 100644 (file)
 #ifdef FIRM_STATISTICS
 
 #include <stdio.h>
+#include <stdlib.h>
 
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
 #ifdef HAVE_STRING_H
 # include <string.h>
 #endif
index 1aee6e8..ef7136a 100644 (file)
@@ -28,9 +28,7 @@
 #ifdef FIRM_STATISTICS
 
 #include <stdio.h>
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
 
 #include "ident.h"
 #include "irop_t.h"
index 0dbe259..764b657 100644 (file)
 #ifdef HAVE_STRING_H
 # include <string.h>
 #endif
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
-
+#include <stdlib.h>
 #include <stddef.h>
 
 #include "type_t.h"
index fde9e46..363fddb 100644 (file)
  */
 #include "config.h"
 
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
-
+#include <stdlib.h>
 #include <stdio.h>
 
 #include "entity_t.h"
index 47251e8..ba377b1 100644 (file)
@@ -42,9 +42,7 @@
 #ifdef HAVE_STRING_H
 # include <string.h>
 #endif
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
 #include <stdio.h>
 #include <assert.h>
 
index ac54d0a..13e97da 100644 (file)
@@ -27,9 +27,7 @@
 
 #include "config.h"
 
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
 #ifdef HAVE_STRING_H
 # include <string.h>  /* memset/memcmp */
 #endif
index 3e3d821..269b3e2 100644 (file)
@@ -41,9 +41,7 @@
 #ifdef HAVE_STRINGS_H
 #include <strings.h>        /* strings.h also includes bsd only function strcasecmp */
 #endif
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
 
 #include "tv_t.h"
 #include "set.h"            /* to store tarvals in */
index 963d3d7..c09ae46 100644 (file)
@@ -26,9 +26,6 @@
 /* Define to 1 if you have the <stdint.h> header file. */
 #define HAVE_STDINT_H 1
 
-/* Define to 1 if you have the <stdlib.h> header file. */
-#define HAVE_STDLIB_H 1
-
 /* Define to 1 if you have the <strings.h> header file. */
 /* #undef HAVE_STRINGS_H */