summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorSND\shalma_cp <SND\shalma_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-12-20 03:10:18 +0000
committerSND\shalma_cp <SND\shalma_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-12-20 03:10:18 +0000
commit0112ea1c6bdb662dc032ebd93ff8f038c70a8704 (patch)
treea523763e4dd0f4da37ef65bc811a106f0c9afea7 /plugins
parent7e22403d70784ed92dabde8badb71b9ed730404d (diff)
downloadpcsxr-0112ea1c6bdb662dc032ebd93ff8f038c70a8704.tar.gz
macosx - dfsound (null)
- (MaddTheSane) configure screen - Patch #7815 git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@61342 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins')
-rw-r--r--plugins/peopsxgl/gpu.c2
-rw-r--r--plugins/peopsxgl/stdafx.h64
2 files changed, 40 insertions, 26 deletions
diff --git a/plugins/peopsxgl/gpu.c b/plugins/peopsxgl/gpu.c
index 91a10b2c..beb11156 100644
--- a/plugins/peopsxgl/gpu.c
+++ b/plugins/peopsxgl/gpu.c
@@ -21,7 +21,7 @@
#include "stdafx.h"
-#ifndef _WINDOWS
+#if !defined(_MACGL) && !defined(_WINDOWS)
#include "config.h"
diff --git a/plugins/peopsxgl/stdafx.h b/plugins/peopsxgl/stdafx.h
index ffa66fd1..b1e3f06e 100644
--- a/plugins/peopsxgl/stdafx.h
+++ b/plugins/peopsxgl/stdafx.h
@@ -36,35 +36,49 @@
#include <GL/gl.h>
+#elif defined(_MACGL)
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdint.h>
+#include <string.h>
+#include <unistd.h>
+#include <sys/stat.h>
+#include <sys/time.h>
+#include <OpenGL/gl.h>
+#include <math.h>
+
+#define CALLBACK /* */
+
#else
-#define __X11_C_
-#define __inline inline
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdint.h>
-#include <string.h>
-#include <unistd.h>
-#include <sys/stat.h>
-#include <sys/time.h>
-#include <GL/gl.h>
-#include <GL/glx.h>
-#include <math.h>
-#include <X11/cursorfont.h>
-
-#define CALLBACK /* */
+#define __X11_C_
+#define __inline inline
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdint.h>
+#include <string.h>
+#include <unistd.h>
+#include <sys/stat.h>
+#include <sys/time.h>
+#include <GL/gl.h>
+#include <GL/glx.h>
+#include <math.h>
+#include <X11/cursorfont.h>
+
+#define CALLBACK /* */
#endif
-
-#include "gl_ext.h"
-
-#define SHADETEXBIT(x) ((x>>24) & 0x1)
-#define SEMITRANSBIT(x) ((x>>25) & 0x1)
+
+#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
+#ifndef GL_BGRA_EXT
+#define GL_BGRA_EXT GL_BGRA
+#endif
+#define GL_COLOR_INDEX8_EXT 0x80E5
#endif