From 73bc23e117d44dfc19ce6c4fc57ff923aa231415 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 7 Mar 2001 05:43:24 +0000 Subject: [PATCH] fix missing string.h/strings.h includes and eol at eof problems --- source/draw.c | 6 ++++++ source/gib_instructions.c | 2 +- source/gib_parse.c | 2 +- source/gib_stack.c | 2 +- source/mathlib.c | 6 ++++++ source/msg.c | 6 ++++++ source/sizebuf.c | 6 ++++++ source/snd_mix.c | 6 ++++++ source/wad.c | 6 ++++++ 9 files changed, 39 insertions(+), 3 deletions(-) diff --git a/source/draw.c b/source/draw.c index c2c751f..13e2624 100644 --- a/source/draw.c +++ b/source/draw.c @@ -29,6 +29,12 @@ #ifdef HAVE_CONFIG_H # include "config.h" #endif +#ifdef HAVE_STRING_H +#include +#endif +#ifdef HAVE_STRINGS_H +#include +#endif #include "draw.h" #include "vid.h" diff --git a/source/gib_instructions.c b/source/gib_instructions.c index 47560e1..ea67e94 100644 --- a/source/gib_instructions.c +++ b/source/gib_instructions.c @@ -222,4 +222,4 @@ int GIB_ExpandBackticks (char *source, char *buffer, int buffersize) } } return 0; -} \ No newline at end of file +} diff --git a/source/gib_parse.c b/source/gib_parse.c index ef1dcca..f380665 100644 --- a/source/gib_parse.c +++ b/source/gib_parse.c @@ -226,4 +226,4 @@ int GIB_ExpandEscapes (char *source) m++; } return 0; -} \ No newline at end of file +} diff --git a/source/gib_stack.c b/source/gib_stack.c index efe0631..baf48b7 100644 --- a/source/gib_stack.c +++ b/source/gib_stack.c @@ -70,4 +70,4 @@ void GIB_SubStack_Push (gib_module_t *mod, gib_sub_t *sub, gib_var_t *local) void GIB_SubStack_Pop (void) { gib_instack = realloc(gib_instack, sizeof(gib_instack_t) * (--gib_subsp)); -} \ No newline at end of file +} diff --git a/source/mathlib.c b/source/mathlib.c index 8ba87fd..9450fe3 100644 --- a/source/mathlib.c +++ b/source/mathlib.c @@ -29,6 +29,12 @@ #ifdef HAVE_CONFIG_H # include "config.h" #endif +#ifdef HAVE_STRING_H +#include +#endif +#ifdef HAVE_STRINGS_H +#include +#endif #include diff --git a/source/msg.c b/source/msg.c index 710ce3f..a72f28b 100644 --- a/source/msg.c +++ b/source/msg.c @@ -29,6 +29,12 @@ #ifdef HAVE_CONFIG_H # include "config.h" #endif +#ifdef HAVE_STRING_H +#include +#endif +#ifdef HAVE_STRINGS_H +#include +#endif #include "msg.h" #include "qendian.h" diff --git a/source/sizebuf.c b/source/sizebuf.c index 53cdf89..f26a094 100644 --- a/source/sizebuf.c +++ b/source/sizebuf.c @@ -29,6 +29,12 @@ #ifdef HAVE_CONFIG_H # include "config.h" #endif +#ifdef HAVE_STRING_H +#include +#endif +#ifdef HAVE_STRINGS_H +#include +#endif #include "sizebuf.h" #include "sys.h" diff --git a/source/snd_mix.c b/source/snd_mix.c index d5ef70d..9015b84 100644 --- a/source/snd_mix.c +++ b/source/snd_mix.c @@ -29,6 +29,12 @@ #ifdef HAVE_CONFIG_H # include "config.h" #endif +#ifdef HAVE_STRING_H +#include +#endif +#ifdef HAVE_STRINGS_H +#include +#endif #include "sound.h" #include "compat.h" diff --git a/source/wad.c b/source/wad.c index 40e04f2..f42177b 100644 --- a/source/wad.c +++ b/source/wad.c @@ -29,6 +29,12 @@ #ifdef HAVE_CONFIG_H # include "config.h" #endif +#ifdef HAVE_STRING_H +#include +#endif +#ifdef HAVE_STRINGS_H +#include +#endif #include "qendian.h" #include "wad.h"