Fix build.

This commit is contained in:
Themaister 2012-05-15 22:20:57 +02:00
parent 6c756b664d
commit 4b25ad4390
2 changed files with 3 additions and 5 deletions

View File

@ -48,12 +48,10 @@ else ifeq ($(platform), wii)
AR = $(DEVKITPPC)/bin/powerpc-eabi-ar
CFLAGS += -DGEKKO -mrvl -mcpu=750 -meabi -mhard-float -DWORDS_BIGENDIAN=1 -D_GNU_SOURCE=1 -DHAVE_LIBMAD -DMUSIC_SUPPORT
else
TARGET := libretro.dll
TARGET := retro.dll
CC = gcc
fpic := -fPIC
LD_FLAGS := -fPIC
SHARED := -shared -static-libgcc -static-libstdc++ -s -Wl,--version-script=src/libretro/link.T
CFLAGS += -D__WIN32__ -D__WIN32_LIBRETRO__ -DHAVE_LIBMAD -DMUSIC_SUPPORT
CFLAGS += -D__WIN32__ -D__WIN32_LIBRETRO__ -DHAVE_LIBMAD -DMUSIC_SUPPORT -Wno-missing-field-initializers -DHAVE_STRLWR -DNO_ASM_BYTEORDER
endif
ifeq ($(DEBUG), 1)

View File

@ -60,7 +60,7 @@
*/
/* Try to use superfast macros on systems that support them */
#ifdef HAVE_ASM_BYTEORDER_H
#if defined(HAVE_ASM_BYTEORDER_H) && !defined(NO_ASM_BYTEORDER)
#include <asm/byteorder.h>
#ifdef __arch_swab16
#define doom_swap_s (signed short)__arch_swab16