shithub: choc

Download patch

ref: 12caa300868803a56395c514a4ad09e8c62aa974
parent: 51dbd914a0b05619488aa38efa7665ede671bc5d
parent: 00990588af107ef76a4898e547e5e80c781822c7
author: Turo Lamminen <turol@users.noreply.github.com>
date: Sun Apr 5 10:15:39 EDT 2020

Merge pull request #1263 from drfrag666/tdmgcc2

Fixed compilation with Code::Blocks and TDM-GCC 5.1

--- 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"