From: Ivan Maidanski Date: Wed, 7 Feb 2018 08:52:11 +0000 (+0300) Subject: Collapse multiple BCOPY_EXISTS macro definitions X-Git-Tag: v8.0.0~370 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a35470707c2ca6067d3170faf8e941c8589d6e0e;p=platform%2Fupstream%2Flibgc.git Collapse multiple BCOPY_EXISTS macro definitions (code refactoring) * include/private/gc_priv.h (BCOPY_EXISTS): Collapse multiple definitions (and use "#elif"). --- diff --git a/include/private/gc_priv.h b/include/private/gc_priv.h index 1892d68..b82b8a9 100644 --- a/include/private/gc_priv.h +++ b/include/private/gc_priv.h @@ -473,27 +473,13 @@ typedef char * ptr_t; /* A generic pointer to which we can add */ #endif /* !NO_CLOCK */ /* We use bzero and bcopy internally. They may not be available. */ -# if defined(SPARC) && defined(SUNOS4) +# if defined(SPARC) && defined(SUNOS4) \ + || (defined(M68K) && defined(NEXT)) || defined(VAX) # define BCOPY_EXISTS -# endif -# if defined(M68K) && defined(AMIGA) -# define BCOPY_EXISTS -# endif -# if defined(M68K) && defined(NEXT) -# define BCOPY_EXISTS -# endif -# if defined(VAX) -# define BCOPY_EXISTS -# endif -# if defined(AMIGA) +# elif defined(AMIGA) || defined(DARWIN) # include # define BCOPY_EXISTS -# endif -# if defined(DARWIN) -# include -# define BCOPY_EXISTS -# endif -# if defined(MACOS) && defined(POWERPC) +# elif defined(MACOS) && defined(POWERPC) # include # define bcopy(x,y,n) BlockMoveData(x, y, n) # define bzero(x,n) BlockZero(x, n)