1 /* Some autoconf-unrelated preprocessor magic that needs to be done
2 before including the system includes and therefore cannot belong in
3 sysdep.h. This file is included at the bottom of config.h. */
5 /* Alloca-related defines, straight out of the Autoconf manual. */
7 /* AIX requires this to be the first thing in the file. */
15 # ifndef alloca /* predefined by HP cc +Olibcalls */
28 /* The "namespace tweaks" below attempt to set a friendly "compilation
29 environment" under popular operating systems. Default compilation
30 environment often means that some functions that are "extensions"
31 are not declared -- `strptime' is one example.
33 But non-default environments can expose bugs in the system header
34 files, crippling compilation in _very_ non-obvious ways. Because
35 of that, we define them only on well-tested architectures where we
36 know they will work. */
38 #undef NAMESPACE_TWEAKS
41 # define NAMESPACE_TWEAKS
45 # define NAMESPACE_TWEAKS
48 #ifdef NAMESPACE_TWEAKS
50 /* Request the "Unix 98 compilation environment". */
51 #define _XOPEN_SOURCE 500
53 /* For Solaris: request everything else that is available and doesn't
54 conflict with the above. */
55 #define __EXTENSIONS__
57 /* For Linux: request features of 4.3BSD and SVID (System V Interface
62 #endif /* NAMESPACE_TWEAKS */
64 /* Determine whether to use stdarg. Use it only if the compiler
65 supports ANSI C and stdarg.h is present. We check for both because
66 there are configurations where stdarg.h exists, but doesn't work.
67 This check cannot be in sysdep.h because we use it to choose which
68 system headers to include. */
69 #ifndef WGET_USE_STDARG
72 # define WGET_USE_STDARG
75 #endif /* not WGET_USE_STDARG */