loadsavefuncs.c: fix build for win32

This commit is contained in:
Thomas Bernard 2019-11-09 02:57:42 +01:00
parent d5953ad51a
commit 01a7200b5d
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C

View File

@ -27,6 +27,18 @@
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#ifndef _MSC_VER
#include <unistd.h>
#endif
#if defined(WIN32)
#include <windows.h>
#if defined(_MSC_VER)
#define strdup _strdup
#if _MSC_VER < 1900
#define snprintf _snprintf
#endif
#endif
#endif
#include "struct.h"
#include "global.h"
#include "loadsave.h"