summaryrefslogtreecommitdiff
path: root/libpsx/include/psxgpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'libpsx/include/psxgpu.h')
-rw-r--r--libpsx/include/psxgpu.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/libpsx/include/psxgpu.h b/libpsx/include/psxgpu.h
index 4548d4d..174569c 100644
--- a/libpsx/include/psxgpu.h
+++ b/libpsx/include/psxgpu.h
@@ -1,6 +1,13 @@
#ifndef _PSXGPU_H
#define _PSXGPU_H
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+#include <stdarg.h>
+
#define GPU_DATA_PORT_ADDR 0x1f801810
#define GPU_CONTROL_PORT_ADDR 0x1f801814
#define GPU_DATA_PORT *((volatile unsigned int*)GPU_DATA_PORT_ADDR)
@@ -13,8 +20,6 @@
#define get_clutid(cx, cy) (((cx&0x3ff)>>4)|((cy&0x1ff)<<6))
-#include <stdarg.h>
-
/**
* Initializes the GPU. Same as GsInitEx(0)
*
@@ -1139,6 +1144,10 @@ void GsSortPolyLine(GsPolyLine *line);
void GsSortGPolyLine(GsGPolyLine *line);
+#ifdef __cplusplus
+}
+#endif
+
//void GsSortSimpleMap(GsMap *map);
#endif