From 2b8a2016d4145fe8df7463f2e70643a1a79041f8 Mon Sep 17 00:00:00 2001 From: Cameron Reikes Date: Mon, 7 Nov 2022 21:22:53 -0800 Subject: [PATCH] fopen_s but for linux --- server.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server.c b/server.c index 5c1ffe9..a632a2d 100644 --- a/server.c +++ b/server.c @@ -10,6 +10,10 @@ #include "minilzo.h" +#ifdef __unix +#define fopen_s(pFile,filename,mode) ((*(pFile))=fopen((filename),(mode)))==NULL +#endif + // started in a thread from host void server(void* world_save_name) {