comparison src/config.h.in @ 615:4f50f8a33f96

[xemacs-hg @ 2001-06-11 04:44:52 by martinb] alloca vs. _XOPEN_SOURCE
author martinb
date Mon, 11 Jun 2001 04:44:52 +0000
parents 4a2749e56f92
children fdefd0186b75
comparison
equal deleted inserted replaced
614:42bfaea76395 615:4f50f8a33f96
23 /* No code in XEmacs #includes config.h twice, but some of the code 23 /* No code in XEmacs #includes config.h twice, but some of the code
24 intended to work with other packages as well (like gmalloc.c) 24 intended to work with other packages as well (like gmalloc.c)
25 think they can include it as many times as they like. */ 25 think they can include it as many times as they like. */
26 #ifndef _SRC_CONFIG_H_ 26 #ifndef _SRC_CONFIG_H_
27 #define _SRC_CONFIG_H_ 27 #define _SRC_CONFIG_H_
28
29
30 /* alloca twiddling belongs in one place, not the s&m headers
31 AIX requires this to be the first thing in the file. */
32 #undef HAVE_ALLOCA_H
33
34 #ifndef NOT_C_CODE
35 #ifdef __GNUC__
36 #define alloca __builtin_alloca
37 #elif defined __DECC
38 #include <alloca.h>
39 #pragma intrinsic(alloca)
40 #elif defined HAVE_ALLOCA_H
41 #include <alloca.h>
42 #elif defined(_AIX)
43 #pragma alloca
44 #elif ! defined (alloca)
45 void *alloca ();
46 #endif
47 #endif /* C code */
48 28
49 /* Use this to add code in a structured way to FSF-maintained source 29 /* Use this to add code in a structured way to FSF-maintained source
50 files so as to make it obvious where XEmacs changes are. */ 30 files so as to make it obvious where XEmacs changes are. */
51 #define XEMACS 1 31 #define XEMACS 1
52 32
601 /* If defined, use unions instead of ints. A few systems (DEC Alpha) 581 /* If defined, use unions instead of ints. A few systems (DEC Alpha)
602 seem to require this, probably because something with the int 582 seem to require this, probably because something with the int
603 definitions isn't right with 64-bit systems. */ 583 definitions isn't right with 64-bit systems. */
604 #undef USE_UNION_TYPE 584 #undef USE_UNION_TYPE
605 585
586 /* alloca twiddling.
587 Because we might be #including alloca.h here, feature test macros
588 such as _XOPEN_SOURCE must be defined above. */
589 #undef HAVE_ALLOCA_H
590 #ifndef NOT_C_CODE
591 #ifdef __GNUC__
592 #define alloca __builtin_alloca
593 #elif defined __DECC
594 #include <alloca.h>
595 #pragma intrinsic(alloca)
596 #elif defined HAVE_ALLOCA_H
597 #include <alloca.h>
598 #elif defined(_AIX)
599 /* AIX requires this before any "real" code in the translation unit. */
600 #pragma alloca
601 #elif ! defined (alloca)
602 void *alloca ();
603 #endif
604 #endif /* C code */
605
606 /* The configuration script may define `opsysfile' to be the name of 606 /* The configuration script may define `opsysfile' to be the name of
607 the s/...h file that describes your operating system. 607 the s/...h file that describes your operating system.
608 The file name is chosen based on the configuration name. */ 608 The file name is chosen based on the configuration name. */
609 609
610 #if defined (__cplusplus) && !defined (NOT_C_CODE) 610 #if defined (__cplusplus) && !defined (NOT_C_CODE)