diff --git a/src/d_netcmd.c b/src/d_netcmd.c
index 434675a75a3bf0072dcd1d3f9e4e797d90178eba..6c6f65b497e4585826f3d2f4698fccee3167db1e 100644
--- a/src/d_netcmd.c
+++ b/src/d_netcmd.c
@@ -3435,9 +3435,9 @@ static void Command_Version_f(void)
 
 	// OS
 	// Would be nice to use SDL_GetPlatform for this
-#if defined(_WIN32)
+#if defined(_WINDOWS)
 	CONS_Printf("Windows ");
-#elif defined(LINUX)
+#elif defined(__linux__)
 	CONS_Printf("Linux ");
 #elif defined(MACOSX)
 	CONS_Printf("macOS" );