gnu.h revision 132718
1/* Configuration common to all targets running the GNU system. */ 2 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}" 6 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}" 10 11/* Standard include directory. In GNU, "/usr" is a four-letter word. */ 12#undef STANDARD_INCLUDE_DIR 13#define STANDARD_INCLUDE_DIR "/include" 14 15/* Implicit library calls should use memcpy, not bcopy, etc. */ 16#undef TARGET_MEM_FUNCTIONS 17#define TARGET_MEM_FUNCTIONS 18 19/* The system headers under GNU are C++-aware. */ 20#define NO_IMPLICIT_EXTERN_C 21 22#define HURD_TARGET_OS_CPP_BUILTINS() \ 23 do { \ 24 builtin_define ("__gnu_hurd__"); \ 25 builtin_define ("__GNU__"); \ 26 builtin_define_std ("unix"); \ 27 builtin_define_std ("MACH"); \ 28 builtin_assert ("system=gnu"); \ 29 builtin_assert ("system=mach"); \ 30 builtin_assert ("system=unix"); \ 31 builtin_assert ("system=posix"); \ 32 } while (0) 33