From d24956109ac3841854374f959e7a494de74936b8 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 27 Jan 2020 21:38:45 -0800 Subject: [PATCH] ULTIMA: gcc compilation fix for create_ultima --- devtools/create_ultima/file.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/devtools/create_ultima/file.h b/devtools/create_ultima/file.h index 7a28aadbfe3..de173ff7e11 100644 --- a/devtools/create_ultima/file.h +++ b/devtools/create_ultima/file.h @@ -23,6 +23,8 @@ #ifndef FILE_H #define FILE_H +#define _CRT_SECURE_NO_WARNINGS + #include #include #include @@ -35,7 +37,7 @@ private: FILE *_file; public: File(const char *filename) { - fopen_s(&_file, filename, "rb"); + _file = fopen(filename, "rb"); assert(_file); } ~File() { @@ -69,7 +71,7 @@ private: FILE *_file; public: WriteFile(const char *filename) { - fopen_s(&_file, filename, "wb"); + _file = fopen(filename, "wb"); assert(_file); } ~WriteFile() {