Add header guards to new headers

This commit is contained in:
Yamagi Burmeister 2012-06-05 10:42:30 +02:00
parent bf590cbba5
commit af83f80dff
6 changed files with 19 additions and 6 deletions

1
TODO
View file

@ -2,7 +2,6 @@ Windows Port TODO
-----------------
- Check WITH_SYSTEMWIDE
- Ensure that all new headers have header guards.
- Replace atoi(), atol() and atof() in Windows code.
- Replace rand() with randk() in Windows code.
- Implement Sys_AppActivate() as soon as cl_hwnd is

View file

@ -24,6 +24,11 @@
* =======================================================================
*/
#ifndef WIN_CONPROC_H
#define WIN_CONPROC_H
void InitConProc(int argc, char **argv);
void DeinitConProc(void);
#endif

View file

@ -24,8 +24,8 @@
* =======================================================================
*/
#ifndef __GLW_WIN_H__
#define __GLW_WIN_H__
#ifndef WIN_GLW_WIN_H__
#define WIN_GLW_WIN_H__
typedef struct
{

View file

@ -28,8 +28,8 @@
#ifdef USE_OPENAL
#ifndef _QAL_API_H_
#define _QAL_API_H_
#ifndef WIN_QAL_API_H_
#define WIN_QAL_API_H_
#include <AL/al.h>
#include <AL/efx.h>
@ -132,5 +132,5 @@ qboolean QAL_Init(void);
*/
void QAL_Shutdown(void);
#endif /* _QAL_API_H_ */
#endif /* WIN_QAL_API_H_ */
#endif /* USE_OPENAL */

View file

@ -1,3 +1,5 @@
#ifndef WIN_RESOURCE_H
#define WIN_RESOURCE_H
#define IDI_ICON1 101
#ifdef APSTUDIO_INVOKED
@ -9,3 +11,5 @@
#endif
#endif
#endif

View file

@ -24,6 +24,9 @@
* =======================================================================
*/
#ifndef WIN_WINQUAKE_H
#define WIN_WINQUAKE_H
#include <windows.h>
#define WINDOW_STYLE (WS_OVERLAPPED | WS_BORDER | WS_CAPTION | WS_VISIBLE)
@ -62,3 +65,5 @@ typedef struct in_state
int *in_speed_state;
} in_state_t;
#endif