]> granicus.if.org Git - nethack/commit
clang on OSX
authorPatR <rankin@nethack.org>
Thu, 20 Dec 2018 01:52:49 +0000 (17:52 -0800)
committerPatR <rankin@nethack.org>
Thu, 20 Dec 2018 01:52:49 +0000 (17:52 -0800)
commitf7dd3b8215b683bbca713ced65aa6aee21015e7b
tree9e1c1c9b42876ba304084652651cc3b309d0ee4c
parent34b4d80d6babe9896a269f145b01e07f16a0ed08
clang on OSX

The Unix Makefile.{src,utl} use the compiler name 'gcc' by default on
OSX, and that invokes clang which defines __GNUC__ to deal with gcc
extensions.  But when invoked via the Xcode IDE, it evidently uses its
own name instead, and wasn't defining __GNUC__.  tradstdc.h started
down the road of duplicating gcc features; switch to pretending to be
gcc instead.
include/tradstdc.h