summaryrefslogtreecommitdiff
path: root/plugins/peopsxgl/stdafx.h
diff options
context:
space:
mode:
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