diff options
author | Elliott Hughes <enh@google.com> | 2014-11-27 10:33:29 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-11-27 10:49:06 -0800 |
commit | 02777e25962b5199c6c13174a60a5185576c1792 (patch) | |
tree | 2d382b8574ba74056e0813ffc5cefb57ea153285 | |
parent | 8ce9134532463a4c2416f5476c74fdccadb17279 (diff) | |
download | srec-02777e25962b5199c6c13174a60a5185576c1792.tar.gz |
Don't define __linux for all platforms.
Linux already has this defined, but we don't want the Mac to pretend
it's Linux.
Change-Id: I2f9eecce27493edcd39c57dd806223bbaa60435c
-rw-r--r-- | make/asr/Makefile.defs | 2 | ||||
-rw-r--r-- | portable/include/pendian.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/make/asr/Makefile.defs b/make/asr/Makefile.defs index 70d97d9..bb0dc01 100644 --- a/make/asr/Makefile.defs +++ b/make/asr/Makefile.defs @@ -889,7 +889,7 @@ ASR_GLOBAL_DEFINES += $(ASR_COMMON_DEFINES) $(ASR_WORKAROUND_DEFINES) # OS specific defines ifeq ($(ASR_TARGET_OS),UNIX) -ASR_GLOBAL_DEFINES += -DPOSIX -D__linux +ASR_GLOBAL_DEFINES += -DPOSIX endif diff --git a/portable/include/pendian.h b/portable/include/pendian.h index f29b826..f9e722c 100644 --- a/portable/include/pendian.h +++ b/portable/include/pendian.h @@ -41,7 +41,7 @@ #elif defined (__linux) /* */#include <endian.h> -#elif defined(__FreeBSD__) || defined(_decunix_) +#elif defined (__APPLE__) || defined(__FreeBSD__) || defined(_decunix_) /* */#include <machine/endian.h> #elif defined(__i386) || defined(_M_IX86) |