git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit 92c3eafc72fae0654780e1362550a2e9057bd993
parent cfcdce81ba38904e7b1f8fe8b553a2dbd7810b69
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Wed, 24 Jun 2020 19:15:29 +0300

Merge branch 'master' of https://github.com/LIJI32/SameBoy

Diffstat:
MCore/gb.h4++++
MMakefile2+-
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/Core/gb.h b/Core/gb.h @@ -52,6 +52,10 @@ #error Unable to detect endianess #endif +#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 8) +#define __builtin_bswap16(x) ({ typeof(x) _x = (x); _x >> 8 | _x << 8; }) +#endif + typedef struct { struct { uint8_t r, g, b; diff --git a/Makefile b/Makefile @@ -392,7 +392,7 @@ $(OBJ)/BootROMs/SameBoyLogo.pb12: $(OBJ)/BootROMs/SameBoyLogo.2bpp $(PB12_COMPRE $(realpath $(PB12_COMPRESS)) < $< > $@ $(PB12_COMPRESS): BootROMs/pb12.c - $(NATIVE_CC) -Wall -Werror $< -o $@ + $(NATIVE_CC) -std=c99 -Wall -Werror $< -o $@ $(BIN)/BootROMs/agb_boot.bin: BootROMs/cgb_boot.asm $(BIN)/BootROMs/cgb_boot_fast.bin: BootROMs/cgb_boot.asm

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.