mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-12 00:03:44 +02:00
cleanup
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5097 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
adc7008fe2
commit
6d32c25e55
@ -13,6 +13,7 @@ OS:=$(shell uname)
|
|||||||
ifeq ($(HOST_OS),Darwin)
|
ifeq ($(HOST_OS),Darwin)
|
||||||
CFLAGS += -I./include
|
CFLAGS += -I./include
|
||||||
endif
|
endif
|
||||||
|
CFLAGS += -I $(TOPDIR)/tools/include -include endian.h
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(CC) $(CFLAGS) -o $(PKG_BUILD_DIR)/sstrip src/sstrip.c
|
$(CC) $(CFLAGS) -o $(PKG_BUILD_DIR)/sstrip src/sstrip.c
|
||||||
|
@ -60,32 +60,6 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <elf.h>
|
#include <elf.h>
|
||||||
|
|
||||||
#ifdef __FreeBSD__
|
|
||||||
/**
|
|
||||||
* This seems to work on FreeBSD 5.3, should
|
|
||||||
* work on all newer versions as well. I have
|
|
||||||
* no idea if it will work on versions < 5.3
|
|
||||||
*
|
|
||||||
* Joe Estock (guru) <jestock at nutextonline.com>
|
|
||||||
*/
|
|
||||||
#include <sys/endian.h>
|
|
||||||
#define bswap_64 __bswap64
|
|
||||||
#define bswap_32 __bswap32
|
|
||||||
#define bswap_16 __bswap16
|
|
||||||
#elif defined(__APPLE__)
|
|
||||||
#include <machine/endian.h>
|
|
||||||
#include <machine/byte_order.h>
|
|
||||||
#define __BYTE_ORDER BYTE_ORDER
|
|
||||||
#define __BIG_ENDIAN BIG_ENDIAN
|
|
||||||
#define bswap_16(x) NXSwapShort(x)
|
|
||||||
#define bswap_32(x) NXSwapInt(x)
|
|
||||||
#define bswap_64(x) NXSwapLongLong(x)
|
|
||||||
#else
|
|
||||||
#include <endian.h>
|
|
||||||
#include <byteswap.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef TRUE
|
#ifndef TRUE
|
||||||
#define TRUE 1
|
#define TRUE 1
|
||||||
#define FALSE 0
|
#define FALSE 0
|
||||||
|
Loading…
Reference in New Issue
Block a user