Use Windows headers on Windows

This commit is contained in:
Yamagi Burmeister 2012-06-11 10:18:44 +02:00
parent e70067ceba
commit 47707a728e
5 changed files with 29 additions and 16 deletions

View file

@ -31,10 +31,15 @@
#ifdef USE_OPENAL
#include "../header/client.h"
#include "../../unix/header/qal.h"
#include "header/local.h"
#include "header/vorbis.h"
#ifdef _WIN32
#include "../../windows/header/qal.h"
#else
#include "../../unix/header/qal.h"
#endif
/* translates from AL coordinate system to quake */
#define AL_UnpackVector(v) - v[1], v[2], -v[0]
#define AL_CopyVector(a, b) ((b)[0] = -(a)[1], (b)[1] = (a)[2], (b)[2] = \

View file

@ -27,10 +27,15 @@
*/
#include "../header/client.h"
#include "../../unix/header/qal.h"
#include "header/local.h"
#include "header/vorbis.h"
#ifdef _WIN32
#include "../../windows/header/qal.h"
#else
#include "../../unix/header/qal.h"
#endif
void S_Play(void);
void S_SoundList(void);
void S_StopAllSounds(void);

View file

@ -24,16 +24,17 @@
*
* =======================================================================
*/
#ifdef _WIN32
#include <SDL/SDL.h>
#else
#include <SDL.h>
#endif
#include "../refresh/header/local.h"
#include "../client/header/keyboard.h"
#ifdef _WIN32
#include <SDL/SDL.h>
#include "../windows/header/winquake.h"
#else
#include <SDL.h>
#include "../unix/header/unix.h"
#endif
#define MOUSE_MAX 3000
#define MOUSE_MIN 40

View file

@ -25,16 +25,16 @@
* =======================================================================
*/
#ifdef _WIN32
#include <SDL/SDL.h>
#else
#include <SDL.h>
#endif
#include "../refresh/header/local.h"
#include <GL/gl.h>
#include "../refresh/header/local.h"
#ifdef _WIN32
#include <SDL/SDL.h>
#include "../windows/header/glwindow.h"
#else
#include <SDL.h>
#include "../unix/header/glwindow.h"
#endif
/* The window icon */
#include "icon/q2icon.xbm"

View file

@ -27,6 +27,8 @@
#ifndef WIN_GLW_WIN_H__
#define WIN_GLW_WIN_H__
#include <windows.h>
typedef struct
{
HINSTANCE hInstance;