From db0b7f077cbaca0cb5a1e5d8fbaa0e960e94e451 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 23 Mar 2008 01:17:40 +0000 Subject: [PATCH] * Define POSIX for Haiku. * Remove superfluous BSD string function macros. git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@24529 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- legacy/gcc/gcc/configure.in | 1 + legacy/gcc/gcc/config/i386/xm-haiku.h | 17 ----------------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/legacy/gcc/gcc/configure.in b/legacy/gcc/gcc/configure.in index 13e07fd..12eaf85 100644 --- a/legacy/gcc/gcc/configure.in +++ b/legacy/gcc/gcc/configure.in @@ -1166,6 +1166,7 @@ i[3456789]86-*-haiku*) changequote([,])dnl xm_file=i386/xm-haiku.h + xm_defines="USG HAVE_ATEXIT POSIX" tmake_file='i386/t-haiku i386/t-crtpic' tm_file=i386/haiku.h xmake_file=i386/x-haiku diff --git a/legacy/gcc/gcc/config/i386/xm-haiku.h b/legacy/gcc/gcc/config/i386/xm-haiku.h index 40fb7a8..655dffa 100644 --- a/legacy/gcc/gcc/config/i386/xm-haiku.h +++ b/legacy/gcc/gcc/config/i386/xm-haiku.h @@ -34,23 +34,6 @@ #define ONLY_INT_FIELDS -/* use ANSI/SYSV style byte manipulation routines instead of BSD ones */ - -#undef bcopy -#define bcopy(s,d,n) memmove((d),(s),(n)) -#undef bzero -#define bzero(d,n) memset((d),0,(n)) -#undef bcmp -#define bcmp(l,r,n) memcmp((l),(r),(n)) -#undef index -#define index strchr -#undef rindex -#define rindex strrchr - -/* Haiku is closer to USG than BSD */ - -#define USG - /* Define various things that the Haiku host has. */ #ifndef HAVE_VPRINTF -- gitore 0.2.2