shithub: cstory

Download patch

ref: a62141e185c23d4a0bc0e1365b977e71e2006e26
parent: 66e4995135ff4798c4bb14e85c694c48a21792d6
author: Gabriel Ravier <gabravier@gmail.com>
date: Mon Jun 29 21:52:38 EDT 2020

src: Added back stddef.h where accurate to get NULL/size_t properly (stdio.h provides them, but it's for file I/O, not essential definitions and types)

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>

--- a/src/Back.cpp
+++ b/src/Back.cpp
@@ -1,5 +1,6 @@
 #include "Back.h"
 
+#include <stddef.h>
 #include <stdio.h>
 
 #include "WindowsWrapper.h"
--- a/src/Config.cpp
+++ b/src/Config.cpp
@@ -1,3 +1,4 @@
+#include <stddef.h>
 #include <stdio.h>
 #include <string.h>
 
--- a/src/Draw.cpp
+++ b/src/Draw.cpp
@@ -1,5 +1,6 @@
 #include "Draw.h"
 
+#include <stddef.h>
 #include <stdio.h>
 #include <string.h>
 
--- a/src/Game.cpp
+++ b/src/Game.cpp
@@ -1,5 +1,6 @@
 #include "Game.h"
 
+#include <stddef.h>
 #include <stdio.h>
 #include <stdlib.h>
 
--- a/src/Input.cpp
+++ b/src/Input.cpp
@@ -1,5 +1,6 @@
 #include "Input.h"
 
+#include <stddef.h>
 #include <stdio.h>
 
 #if defined(_MSC_VER) && _MSC_VER >= 1500	// Newer versions of Visual Studio don't support anything earlier than DirectInput8
--- a/src/Main.cpp
+++ b/src/Main.cpp
@@ -1,5 +1,6 @@
 #include "Main.h"
 
+#include <stddef.h>
 #include <stdio.h>
 #include <string.h>
 
--- a/src/Map.cpp
+++ b/src/Map.cpp
@@ -1,5 +1,6 @@
 #include "Map.h"
 
+#include <stddef.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
--- a/src/NpChar.cpp
+++ b/src/NpChar.cpp
@@ -1,5 +1,6 @@
 #include "NpChar.h"
 
+#include <stddef.h>
 #include <stdio.h>
 #include <string.h>
 
--- a/src/NpcTbl.cpp
+++ b/src/NpcTbl.cpp
@@ -1,5 +1,6 @@
 #include "NpcTbl.h"
 
+#include <stddef.h>
 #include <stdio.h>
 #include <stdlib.h>
 
--- a/src/Organya.cpp
+++ b/src/Organya.cpp
@@ -6,6 +6,7 @@
 
 #include "Organya.h"
 
+#include <stddef.h>
 #include <stdlib.h>
 #include <string.h>
 
--- a/src/Profile.cpp
+++ b/src/Profile.cpp
@@ -1,5 +1,6 @@
 #include "Profile.h"
 
+#include <stddef.h>
 #include <stdio.h>
 #include <string.h>
 
--- a/src/Sound.cpp
+++ b/src/Sound.cpp
@@ -12,6 +12,7 @@
 
 #include "Sound.h"
 
+#include <stddef.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>