foxygit / doom Log in
commit 00990588af107ef76a4898e547e5e80c781822c7
Author:     drfrag <drfrag666@hotmail.com>
AuthorDate: Sat Apr 4 19:52:32 2020 +0200
Commit:     drfrag <drfrag666@hotmail.com>
CommitDate: Sat Apr 4 19:52:32 2020 +0200

    Fixed compilation with Code::Blocks and TDM-GCC 5.1 (missing includes).
---
 midiproc/buffer.c   | 1 +
 opl/opl.c           | 1 +
 opl/opl_sdl.c       | 1 +
 src/doom/f_finale.c | 1 +
 src/doom/hu_stuff.c | 1 +
 src/doom/p_setup.c  | 1 +
 src/doom/st_stuff.c | 1 +
 src/i_main.c        | 1 +
 src/i_video.c       | 2 ++
 9 files changed, 10 insertions(+)

diff --git a/midiproc/buffer.c b/midiproc/buffer.c
index 1a1ff3d3..2410448b 100644
--- 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.
diff --git a/opl/opl.c b/opl/opl.c
index 0d256891..a1aa1d95 100644
--- a/opl/opl.c
+++ b/opl/opl.c
@@ -19,6 +19,7 @@

 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>

 #include "SDL.h"

diff --git a/opl/opl_sdl.c b/opl/opl_sdl.c
index b1ccb70a..2beb8ac5 100644
--- 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>
diff --git a/src/doom/f_finale.c b/src/doom/f_finale.c
index 862b9e18..fc45de3c 100644
--- 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"
diff --git a/src/doom/hu_stuff.c b/src/doom/hu_stuff.c
index dd8eed0d..633a5bc7 100644
--- 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"
diff --git a/src/doom/p_setup.c b/src/doom/p_setup.c
index 41fbd08a..4de6bc84 100644
--- 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"

diff --git a/src/doom/st_stuff.c b/src/doom/st_stuff.c
index d5112608..3c657373 100644
--- 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"
diff --git a/src/i_main.c b/src/i_main.c
index 4afad7d0..b6699a48 100644
--- 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"

diff --git a/src/i_video.c b/src/i_video.c
index 12673173..a05963b0 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -17,6 +17,8 @@
 //


+#include <stdlib.h>
+
 #include "SDL.h"
 #include "SDL_opengl.h"