From f87715a62c2e6a5660c2a176fffc0d7333bcfd8c Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sat, 3 Oct 2009 20:08:20 +0000 Subject: - Include even on non-__GNUC__ systems. - Add some tests for unresolved bugs. --- make.h | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) (limited to 'make.h') diff --git a/make.h b/make.h index 60d14129..f9c7e1b1 100644 --- a/make.h +++ b/make.h @@ -23,28 +23,25 @@ this program. If not, see . */ #undef HAVE_CONFIG_H #define HAVE_CONFIG_H 1 +/* Specify we want GNU source code. This must be defined before any + system headers are included. */ + +#define _GNU_SOURCE 1 + /* AIX requires this to be the first thing in the file. */ -#ifndef __GNUC__ -# if HAVE_ALLOCA_H -# include -# else -# ifdef _AIX +#if HAVE_ALLOCA_H +# include +#else +# ifdef _AIX #pragma alloca -# else -# ifndef alloca /* predefined by HP cc +Olibcalls */ +# else +# ifndef alloca /* predefined by HP cc +Olibcalls */ char *alloca (); -# endif # endif # endif #endif -/* Specify we want GNU source code. This must be defined before any - system headers are included. */ - -#define _GNU_SOURCE 1 - - #ifdef CRAY /* This must happen before #include so that the declaration therein is changed. */ -- cgit v1.2.3