ref: b509c0a33dfe7f3ea699a18fcb1fc32b34fbf212
parent: e1647ba1c02f2d66a3086cc191c594800bf0be22
author: Tanguy Fautre <[email protected]>
date: Fri Feb 14 18:55:00 EST 2020
Replace PLATFORM_UNIX with UNIX
--- a/Engine/src/platform.h
+++ b/Engine/src/platform.h
@@ -3,7 +3,7 @@
#if (defined WIN32)
#include "win32_compat.h"
-#elif (defined PLATFORM_UNIX)
+#elif (defined UNIX)
#include "unix_compat.h"
#elif (defined __APPLE__)
#include "macos_compat.h"
--- a/Engine/src/unix_compat.h
+++ b/Engine/src/unix_compat.h
@@ -26,9 +26,6 @@
#define O_BINARY 0
-#define UDP_NETWORKING 1
-
-#define PLATFORM_UNIX 1
/*
#define SOL_IP SOL_SOCKET
--- a/Game/src/duke3d.h
+++ b/Game/src/duke3d.h
@@ -55,7 +55,7 @@
#endif
#endif
-#if PLATFORM_UNIX
+#if UNIX
#include "dukeunix.h"
#endif
--- a/Game/src/gamedef.c
+++ b/Game/src/gamedef.c
@@ -1156,7 +1156,7 @@
break;
}
}
-#ifdef PLATFORM_UNIX
+#ifdef UNIX
volume_names[j][i] = '\0';
#else
volume_names[j][i-1] = '\0';
@@ -1183,7 +1183,7 @@
break;
}
}
-#ifdef PLATFORM_UNIX
+#ifdef UNIX
skill_names[j][i] = '\0';
#else
skill_names[j][i-1] = '\0';
@@ -1213,7 +1213,7 @@
break;
}
}
-#ifdef PLATFORM_UNIX
+#ifdef UNIX
level_names[j*11+k][i] = '\0';
#else
level_names[j*11+k][i-1] = '\0';
@@ -1249,7 +1249,7 @@
break;
}
}
-#ifdef PLATFORM_UNIX
+#ifdef UNIX
level_names[j*11+k][i] = '\0';
#else
level_names[j*11+k][i-1] = '\0';
@@ -1569,7 +1569,7 @@
ud.conCRC[0] = crc32_update((uint8_t *)textptr, fs, ud.conCRC[0]);
}
-#ifdef PLATFORM_UNIX
+#ifdef UNIX
textptr[fs - 1] = 0;
#else
textptr[fs - 2] = 0;
--- a/Game/src/global.c
+++ b/Game/src/global.c
@@ -223,7 +223,7 @@
void FixFilePath(char *filename)
{
-#if PLATFORM_UNIX
+#if UNIX
uint8_t *ptr;
uint8_t *lastsep = filename;
@@ -329,7 +329,7 @@
return(0);
}
-#elif defined(PLATFORM_UNIX) || defined(PLATFORM_MACOSX)
+#elif defined(UNIX) || defined(PLATFORM_MACOSX)
int _dos_findfirst(char *filename, int x, struct find_t *f)
{
char *ptr;
@@ -767,7 +767,7 @@
Stolen for Duke3D, too.
*/
-#if PLATFORM_UNIX
+#if UNIX
uint8_t *strlwr(uint8_t *s)
{
uint8_t *p = s;
@@ -848,7 +848,7 @@
int setup_homedir (void)
{
-#if PLATFORM_UNIX
+#if UNIX
int err;
snprintf (ApogeePath, sizeof (ApogeePath), "%s/.duke3d/", getenv ("HOME"));