diff options
| author | Xavi Del Campo <xavi.dcr@tutanota.com> | 2020-02-01 00:51:53 +0100 |
|---|---|---|
| committer | Xavi Del Campo <xavi.dcr@tutanota.com> | 2020-02-01 00:51:53 +0100 |
| commit | 805fc37a06b41d6a52b2994dcfda794b0e476b4d (patch) | |
| tree | 479afad552bf982e36c845fa416ce074a87ab208 /libpsx/include/psxgpu.h | |
| parent | 5f638ea86cd1ee29ab9942ba32ae87c12bb1fb0f (diff) | |
| download | psxsdk-805fc37a06b41d6a52b2994dcfda794b0e476b4d.tar.gz | |
Added missing extern "C"
Diffstat (limited to 'libpsx/include/psxgpu.h')
| -rw-r--r-- | libpsx/include/psxgpu.h | 13 |
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 |
