mirror of
https://github.com/libretro/RetroArch.git
synced 2024-10-08 15:13:24 +00:00
(RarchDB) Cleanups
This commit is contained in:
parent
8d929854af
commit
4a7dd62cd3
@ -1,4 +1,5 @@
|
||||
CFLAGS=-std=c99 -g
|
||||
CFLAGS =-std=c99 -g
|
||||
INCFLAGS = -I. -I../libretro-sdk/include
|
||||
DAT_CONVERTER_OBJ = rmsgpack.o \
|
||||
rmsgpack_dom.o \
|
||||
rarchdb.o \
|
||||
@ -17,15 +18,15 @@ RARCHDB_TOOL_OBJ = rmsgpack.o \
|
||||
all: dat_converter rmsgpack_test rarchdb_tool
|
||||
|
||||
%.o: %.c
|
||||
${CC} $< -c ${CFLAGS} -o $@
|
||||
${CC} $(INCFLAGS) $< -c ${CFLAGS} -o $@
|
||||
|
||||
dat_converter: ${DAT_CONVERTER_OBJ}
|
||||
${CC} ${DAT_CONVERTER_OBJ} -o $@
|
||||
${CC} $(INCFLAGS) ${DAT_CONVERTER_OBJ} -o $@
|
||||
|
||||
rarchdb_tool: ${RARCHDB_TOOL_OBJ}
|
||||
${CC} ${RARCHDB_TOOL_OBJ} -o $@
|
||||
${CC} $(INCFLAGS) ${RARCHDB_TOOL_OBJ} -o $@
|
||||
|
||||
rmsgpack_test:
|
||||
gcc rmsgpack.c rmsgpack_test.c -std=c99 -g -o $@
|
||||
${CC} $(INCFLAGS) rmsgpack.c rmsgpack_test.c -std=c99 -g -o $@
|
||||
clean:
|
||||
rm -rf *.o rmsgpack_test dat_converter rarchdb_tool
|
||||
|
@ -10,14 +10,6 @@
|
||||
| (((uint16_t)(val) & 0xff00) >> 8))
|
||||
#endif
|
||||
|
||||
#ifndef swap32
|
||||
#define swap32(val) \
|
||||
((((uint32_t)(val) & 0x000000ff) << 24) \
|
||||
| (((uint32_t)(val) & 0x0000ff00) << 8) \
|
||||
| (((uint32_t)(val) & 0x00ff0000) >> 8) \
|
||||
| (((uint32_t)(val) & 0xff000000) >> 24))
|
||||
#endif
|
||||
|
||||
#ifndef swap64
|
||||
#define swap64(val) \
|
||||
((((uint64_t)(val) & 0x00000000000000ffULL) << 56) \
|
||||
@ -32,7 +24,7 @@
|
||||
|
||||
|
||||
#define httobe64(x) (is_little_endian() ? swap64(x) : (x))
|
||||
#define httobe32(x) (is_little_endian() ? swap32(x) : (x))
|
||||
#define httobe32(x) (is_little_endian() ? SWAP32(x) : (x))
|
||||
#define httobe16(x) (is_little_endian() ? swap16(x) : (x))
|
||||
|
||||
#define betoht16(x) httobe16(x)
|
||||
|
Loading…
Reference in New Issue
Block a user