From 2f4bde5659d005ffd7195e850b10ee918ea894e1 Mon Sep 17 00:00:00 2001 From: Robert Pengelly Date: Sat, 29 Mar 2025 17:47:17 +0000 Subject: [PATCH] Define empty os_name in else conditional --- xmake.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/xmake.c b/xmake.c index 8278eea..4294af6 100644 --- a/xmake.c +++ b/xmake.c @@ -23,20 +23,20 @@ struct variable *default_goal_var = 0; struct xmake_state *state = 0; const char *program_name = 0; -const char *os_name = ""; - #if defined (__PDOS__) -os_name = "PDOS"; +const char *os_name = "PDOS"; #elif defined (_WIN32) || defined (__WIN32__) -os_name = "Windows_NT"; +const char *os_name = "Windows_NT"; #elif defined (__MSDOS__) -os_name = "MSDOS"; +const char *os_name = "MSDOS"; #elif defined (__APPLE__) -os_name = "Apple"; +const char *os_name = "Apple"; #elif defined (__linux__) -os_name = "Linux"; +const char *os_name = "Linux"; #elif defined (unix) || defined (__unix) || defined (__unix__) -os_name = "Unix"; +const char *os_name = "Unix"; +#else +const char *os_name = ""; #endif struct linebuf { -- 2.34.1