summaryrefslogtreecommitdiff
path: root/src/game/bg_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/bg_lib.h')
-rw-r--r--src/game/bg_lib.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/bg_lib.h b/src/game/bg_lib.h
index d31f4cf8..61d64025 100644
--- a/src/game/bg_lib.h
+++ b/src/game/bg_lib.h
@@ -2,6 +2,12 @@
// 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
/*
* Portions Copyright (C) 2000-2001 Tim Angus
@@ -83,3 +89,4 @@ double fabs( double x );
double acos( double x );
float pow( float x, float y );
+#endif // BG_LIB_H