From 805fc37a06b41d6a52b2994dcfda794b0e476b4d Mon Sep 17 00:00:00 2001 From: Xavi Del Campo Date: Sat, 1 Feb 2020 00:51:53 +0100 Subject: Added missing extern "C" --- libpsx/include/psxgpu.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'libpsx/include/psxgpu.h') 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 + #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 - /** * 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 -- cgit v1.2.3