summaryrefslogtreecommitdiff
path: root/plugins/peopsxgl/stdafx.h
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-08-18 01:34:01 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-08-18 01:34:01 +0000
commitc4f5208806fe4136b19cce9f63f03820fc49d0cf (patch)
treec1f42770d9fc0f88538993f0fb4cc78c364c056e /plugins/peopsxgl/stdafx.h
parentc4a77870fcb7793bd5a7611b9994a5b15a335a3c (diff)
downloadpcsxr-c4f5208806fe4136b19cce9f63f03820fc49d0cf.tar.gz
peopsxgl: Readded windows support.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@56180 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/peopsxgl/stdafx.h')
-rw-r--r--plugins/peopsxgl/stdafx.h29
1 files changed, 27 insertions, 2 deletions
diff --git a/plugins/peopsxgl/stdafx.h b/plugins/peopsxgl/stdafx.h
index 1d845ff2..ffa66fd1 100644
--- a/plugins/peopsxgl/stdafx.h
+++ b/plugins/peopsxgl/stdafx.h
@@ -16,6 +16,28 @@
* *
***************************************************************************/
+#ifdef _WINDOWS
+
+#define _CRT_SECURE_NO_WARNINGS
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdint.h>
+#include <string.h>
+#include <stdarg.h>
+#include <windows.h>
+#include <windowsx.h>
+#include <tchar.h>
+#include <mmsystem.h>
+#include "resource.h"
+
+#pragma warning (disable:4244)
+#pragma warning (disable:4761)
+
+#include <GL/gl.h>
+
+#else
+
#define __X11_C_
#define __inline inline
@@ -32,14 +54,17 @@
#include <X11/cursorfont.h>
#define CALLBACK /* */
-#define __inline inline
+
+#endif
#include "gl_ext.h"
#define SHADETEXBIT(x) ((x>>24) & 0x1)
#define SEMITRANSBIT(x) ((x>>25) & 0x1)
-
+
+#ifndef _WINDOWS
#ifndef GL_BGRA_EXT
#define GL_BGRA_EXT GL_BGRA
#endif
#define GL_COLOR_INDEX8_EXT 0x80E5
+#endif