shithub: choc

Download patch

ref: 00990588af107ef76a4898e547e5e80c781822c7
parent: 8af3da562a9bc7136faa726084e4cbb08ae9a2d9
author: drfrag <drfrag666@hotmail.com>
date: Sat Apr 4 15:52:32 EDT 2020

Fixed compilation with Code::Blocks and TDM-GCC 5.1 (missing includes).

--- a/midiproc/buffer.c
+++ b/midiproc/buffer.c
@@ -20,6 +20,7 @@
 #include "buffer.h"
 
 #include <stdlib.h>
+#include <stddef.h>
 
 //
 // Create a new buffer.
--- a/opl/opl.c
+++ b/opl/opl.c
@@ -19,6 +19,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 
 #include "SDL.h"
 
--- a/opl/opl_sdl.c
+++ b/opl/opl_sdl.c
@@ -18,6 +18,7 @@
 #include "config.h"
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <errno.h>
 #include <assert.h>
--- a/src/doom/f_finale.c
+++ b/src/doom/f_finale.c
@@ -19,6 +19,7 @@
 
 #include <stdio.h>
 #include <ctype.h>
+#include <stdlib.h>
 
 // Functions.
 #include "deh_main.h"
--- a/src/doom/hu_stuff.c
+++ b/src/doom/hu_stuff.c
@@ -17,6 +17,7 @@
 
 
 #include <ctype.h>
+#include <stdlib.h>
 
 #include "doomdef.h"
 #include "doomkeys.h"
--- a/src/doom/p_setup.c
+++ b/src/doom/p_setup.c
@@ -20,6 +20,7 @@
 
 
 #include <math.h>
+#include <stdlib.h>
 
 #include "z_zone.h"
 
--- a/src/doom/st_stuff.c
+++ b/src/doom/st_stuff.c
@@ -21,6 +21,7 @@
 
 
 #include <stdio.h>
+#include <ctype.h>
 
 #include "i_system.h"
 #include "i_video.h"
--- a/src/i_main.c
+++ b/src/i_main.c
@@ -19,6 +19,7 @@
 #include "config.h"
 
 #include <stdio.h>
+#include <stdlib.h>
 
 #include "SDL.h"
 
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -17,6 +17,8 @@
 //
 
 
+#include <stdlib.h>
+
 #include "SDL.h"
 #include "SDL_opengl.h"