diff options
Diffstat (limited to 'code/game')
-rw-r--r-- | code/game/bg_lib.c | 2 | ||||
-rw-r--r-- | code/game/bg_lib.h | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/code/game/bg_lib.c b/code/game/bg_lib.c index b198f72..e313087 100644 --- a/code/game/bg_lib.c +++ b/code/game/bg_lib.c @@ -38,6 +38,8 @@ * SUCH DAMAGE. */ +#include "bg_lib.h" + #if defined(LIBC_SCCS) && !defined(lint) #if 0 static char sccsid[] = "@(#)qsort.c 8.1 (Berkeley) 6/4/93"; diff --git a/code/game/bg_lib.h b/code/game/bg_lib.h index d6deb60..70603d2 100644 --- a/code/game/bg_lib.h +++ b/code/game/bg_lib.h @@ -23,6 +23,12 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // compiled for the virtual machine // This file is NOT included on native builds +#ifndef BG_LIB_H +#define BG_LIB_H + +#ifndef NULL +#define NULL ((void *)0) +#endif typedef int size_t; @@ -89,3 +95,4 @@ int abs( int n ); double fabs( double x ); double acos( double x ); +#endif // BG_LIB_H |