[build] Try to fix more compile errors

This commit is contained in:
Prince Frizzy 2025-05-19 15:38:58 -04:00
parent 968204e9d1
commit e9be2ba20c
No known key found for this signature in database
GPG key ID: 0A8A0E97BACA3FC6
4 changed files with 9 additions and 13 deletions

View file

@ -1121,7 +1121,9 @@ endif
CFLAGS += -fPIE
# Generate a map file
LDFLAGS += -Wl,-Map $(MAP)
ifeq ($(OSX_BUILD),0)
LDFLAGS += -Wl,-Map $(MAP)
endif
# Prevent a crash with -sopt
export LANG := C

View file

@ -11,6 +11,12 @@ extern "C" {
#define AT_STARTUP __attribute__((constructor))
#ifdef GIT_HASH
#define TITLE ({ char title[96] = ""; snprintf(title, 96, "%s %s, [%s]", WINDOW_NAME, get_version(), GIT_HASH); title; })
#else
#define TITLE ({ char title[96] = ""; snprintf(title, 96, "%s %s", WINDOW_NAME, get_version()); title; })
#endif
extern bool gGameInited;
extern bool gGfxInited;

View file

@ -27,12 +27,6 @@ extern struct GfxWindowManagerAPI *wm_api;
void nx_init(void);
void nx_cleanup(void);
#ifdef GIT_HASH
#define TITLE ({ char title[96] = ""; snprintf(title, 96, "%s %s, [%s]", WINDOW_NAME, get_version(), GIT_HASH); title; })
#else
#define TITLE ({ char title[96] = ""; snprintf(title, 96, "%s %s", WINDOW_NAME, get_version()); title; })
#endif
#ifdef __cplusplus
}
#endif

View file

@ -55,12 +55,6 @@ extern "C" {
#define RAPI_NAME "Dummy"
#endif
#ifdef GIT_HASH
#define TITLE ({ char title[96] = ""; snprintf(title, 96, "%s %s, [%s]", WINDOW_NAME, get_version(), GIT_HASH); title; })
#else
#define TITLE ({ char title[96] = ""; snprintf(title, 96, "%s %s", WINDOW_NAME, get_version()); title; })
#endif
#ifdef __cplusplus
}
#endif