You've already forked HackerSM64
mirror of
https://github.com/HackerN64/HackerSM64.git
synced 2026-01-21 10:35:32 -08:00
fix overalignment
This commit is contained in:
2
sm64.ld
2
sm64.ld
@@ -219,7 +219,7 @@ SECTIONS
|
||||
BEGIN_NOLOAD(engine)
|
||||
{
|
||||
BUILD_DIR/src/engine*.o(.bss*);
|
||||
. = ALIGN(0x100);
|
||||
. = ALIGN(0x40);
|
||||
}
|
||||
END_NOLOAD(engine)
|
||||
|
||||
|
||||
@@ -10,14 +10,15 @@
|
||||
// "#define printf(...) /* nothing */" wasn't an option.)
|
||||
// This macro is separate from the gd_printf function; one probably
|
||||
// forwarded to the other, but it is hard to tell in which direction.
|
||||
#ifdef __GNUC__
|
||||
|
||||
#if defined(ISVPRINT) || defined(UNF)
|
||||
#define printf osSyncPrintf
|
||||
#else
|
||||
#define printf(...) \
|
||||
_Pragma ("GCC diagnostic push") \
|
||||
_Pragma ("GCC diagnostic ignored \"-Wunused-value\"") \
|
||||
(__VA_ARGS__); \
|
||||
_Pragma ("GCC diagnostic pop")
|
||||
#else
|
||||
#define printf
|
||||
#endif
|
||||
|
||||
// structs
|
||||
|
||||
Reference in New Issue
Block a user