2005-03-29 Paul Brook <paul@codesourcery.com>
[official-gcc.git] / gcc / config / gnu.h
blob79c64c77ba98871fd463a069e0e0101eb5377fa5
1 /* Configuration common to all targets running the GNU system. */
3 /* Provide GCC options for standard feature-test macros. */
4 #undef CPP_SPEC
5 #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{bsd:-D_BSD_SOURCE}"
7 /* Default C library spec. Use -lbsd-compat for gcc -bsd. */
8 #undef LIB_SPEC
9 #define LIB_SPEC "%{bsd:-lbsd-compat} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
11 /* Standard include directory. In GNU, "/usr" is a four-letter word. */
12 #undef STANDARD_INCLUDE_DIR
13 #define STANDARD_INCLUDE_DIR "/include"
15 /* The system headers under GNU are C++-aware. */
16 #define NO_IMPLICIT_EXTERN_C
18 #define HURD_TARGET_OS_CPP_BUILTINS() \
19 do { \
20 builtin_define ("__gnu_hurd__"); \
21 builtin_define ("__GNU__"); \
22 builtin_define_std ("unix"); \
23 builtin_define_std ("MACH"); \
24 builtin_assert ("system=gnu"); \
25 builtin_assert ("system=mach"); \
26 builtin_assert ("system=unix"); \
27 builtin_assert ("system=posix"); \
28 } while (0)