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/psxspu.h | |
| parent | 5f638ea86cd1ee29ab9942ba32ae87c12bb1fb0f (diff) | |
| download | psxsdk-805fc37a06b41d6a52b2994dcfda794b0e476b4d.tar.gz | |
Added missing extern "C"
Diffstat (limited to 'libpsx/include/psxspu.h')
| -rw-r--r-- | libpsx/include/psxspu.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libpsx/include/psxspu.h b/libpsx/include/psxspu.h index 2268500..9c51781 100644 --- a/libpsx/include/psxspu.h +++ b/libpsx/include/psxspu.h @@ -1,6 +1,11 @@ #ifndef _SPU_H
#define _SPU_H
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
#define SPU_ADDR *((volatile unsigned short*)0x1f801da6)
#define SPU_DATA *((volatile unsigned short*)0x1f801da8)
#define SPU_CONTROL *((volatile unsigned short*)0x1f801daa)
@@ -222,4 +227,8 @@ void SsEnableExt(void); void SsCdVol(unsigned short left, unsigned short right);
+#ifdef __cplusplus
+}
+#endif
+
#endif
|
