]> sjero.net Git - wget/blob - src/config-post.h
[svn] Use bool type for boolean variables and values.
[wget] / src / config-post.h
1 /* Some autoconf-unrelated preprocessor magic that needs to be done
2    *before* including the system includes and therefore cannot belong
3    in sysdep.h.
4
5    Everything else related to system tweaking belongs to sysdep.h.
6
7    This file is included at the bottom of config.h.  */
8
9 /* Alloca-related defines, straight out of the Autoconf manual. */
10
11 /* AIX requires this to be the first thing in the file.  */
12 #ifndef __GNUC__
13 # if HAVE_ALLOCA_H
14 #  include <alloca.h>
15 # else
16 #  ifdef _AIX
17  #pragma alloca
18 #  else
19 #   ifndef alloca /* predefined by HP cc +Olibcalls */
20 void *alloca ();
21 #   endif
22 #  endif
23 # endif
24 #endif
25
26 #ifdef __sun
27 # ifdef __SVR4
28 #  define solaris
29 # endif
30 #endif
31
32 /* The "namespace tweaks" below attempt to set a friendly "compilation
33    environment" under popular operating systems.  Default compilation
34    environment often means that some functions that are "extensions"
35    are not declared -- `strptime' is one example.
36
37    But non-default environments can expose bugs in the system header
38    files, crippling compilation in _very_ non-obvious ways.  Because
39    of that, we define them only on well-tested architectures where we
40    know they will work.  */
41
42 #undef NAMESPACE_TWEAKS
43
44 #ifdef solaris
45 # define NAMESPACE_TWEAKS
46 #endif
47
48 #ifdef __linux__
49 # define NAMESPACE_TWEAKS
50 #endif
51
52 #ifdef NAMESPACE_TWEAKS
53
54 /* Request the "Unix 98 compilation environment". */
55 #define _XOPEN_SOURCE 500
56
57 /* For Solaris: request everything else that is available and doesn't
58    conflict with the above.  */
59 #define __EXTENSIONS__
60
61 /* For Linux: request features of 4.3BSD and SVID (System V Interface
62    Definition). */
63 #define _SVID_SOURCE
64 #define _BSD_SOURCE
65
66 #endif /* NAMESPACE_TWEAKS */