diff options
author | Paul Smith <psmith@gnu.org> | 2009-10-03 20:08:20 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2009-10-03 20:08:20 +0000 |
commit | f87715a62c2e6a5660c2a176fffc0d7333bcfd8c (patch) | |
tree | 815c7f2dcc9e2220f7f21c7d30f7533fdd2a4542 /make.h | |
parent | 56653d852446e74a4d998c7d91e6591e28c240f9 (diff) | |
download | gunmake-f87715a62c2e6a5660c2a176fffc0d7333bcfd8c.tar.gz |
- Include <alloca.h> even on non-__GNUC__ systems.
- Add some tests for unresolved bugs.
Diffstat (limited to 'make.h')
-rw-r--r-- | make.h | 25 |
1 files changed, 11 insertions, 14 deletions
@@ -23,28 +23,25 @@ this program. If not, see <http://www.gnu.org/licenses/>. */ #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 <alloca.h> -# else -# ifdef _AIX +#if HAVE_ALLOCA_H +# include <alloca.h> +#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 <signal.h> so that the declaration therein is changed. */ |