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) {