Don't define ELF, use __ELF__ instead

This commit is contained in:
Ludwig Nussel 2007-11-06 16:41:57 +00:00
parent 527a5ddb1d
commit 6f85c247e3
2 changed files with 2 additions and 6 deletions

View file

@ -835,7 +835,7 @@ endef
define DO_AS define DO_AS
$(echo_cmd) "AS $<" $(echo_cmd) "AS $<"
$(Q)$(CC) $(CFLAGS) -DELF -x assembler-with-cpp -o $@ -c $< $(Q)$(CC) $(CFLAGS) -x assembler-with-cpp -o $@ -c $<
endef endef
define DO_DED_CC define DO_DED_CC

View file

@ -24,15 +24,11 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "../qcommon/q_platform.h" #include "../qcommon/q_platform.h"
#if defined(__MINGW32__) || defined(MACOS_X)
#undef ELF
#endif
#ifdef __ELF__ #ifdef __ELF__
.section .note.GNU-stack,"",@progbits .section .note.GNU-stack,"",@progbits
#endif #endif
#ifdef ELF #ifdef __ELF__
#define C(label) label #define C(label) label
#else #else
#define C(label) _##label #define C(label) _##label