]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - quakedef.h
DP code cleanup, stage one - all headers that can be protected by ifdef
[xonotic/darkplaces.git] / quakedef.h
index 85760abad582bb32b6c2029c71990b0c9bba651e..8209817ab8916757645110185dbbbb76b731edfc 100644 (file)
@@ -19,14 +19,21 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
 // quakedef.h -- primary header for client
 
+#ifndef QUAKEDEF_H
+#define QUAKEDEF_H
+
 #define QUAKE_GAME // as opposed to utilities
 
+#include <math.h>
+#include <string.h>
+#include <stdarg.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <setjmp.h>
+
 extern char *buildstring;
 
-#if !defined BYTE_DEFINED
-typedef unsigned char          byte;
-#define BYTE_DEFINED 1
-#endif
+typedef unsigned char qbyte;
 
 #undef true
 #undef false
@@ -51,13 +58,6 @@ typedef enum {false, true} qboolean;
 
 #define GAMENAME "id1"
 
-#include <math.h>
-#include <string.h>
-#include <stdarg.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <setjmp.h>
-
 #define MAX_NUM_ARGVS  50
 
 // up / down
@@ -294,9 +294,12 @@ void Chase_Reset (void);
 void Chase_Update (void);
 
 void fractalnoise(unsigned char *noise, int size, int startgrid);
-void fractalnoisequick(byte *noise, int size, int startgrid);
+void fractalnoisequick(unsigned char *noise, int size, int startgrid);
 
 #include "palette.h"
 #include "image.h"
 
 void Sys_Shared_Init(void);
+
+#endif
+