summaryrefslogtreecommitdiff
path: root/libpcsxcore/ix86
diff options
context:
space:
mode:
Diffstat (limited to 'libpcsxcore/ix86')
-rw-r--r--libpcsxcore/ix86/iGte.h7
-rw-r--r--libpcsxcore/ix86/ix86.c4
-rw-r--r--libpcsxcore/ix86/ix86.h15
3 files changed, 22 insertions, 4 deletions
diff --git a/libpcsxcore/ix86/iGte.h b/libpcsxcore/ix86/iGte.h
index 0847e368..d03705ec 100644
--- a/libpcsxcore/ix86/iGte.h
+++ b/libpcsxcore/ix86/iGte.h
@@ -20,6 +20,10 @@
#ifndef __IGTE_H__
#define __IGTE_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include "../r3000a.h"
#include "../psxmem.h"
@@ -69,4 +73,7 @@ CP2_FUNC(GPF);
CP2_FUNC(GPL);
CP2_FUNCNC(NCCT);
+#ifdef __cplusplus
+}
+#endif
#endif
diff --git a/libpcsxcore/ix86/ix86.c b/libpcsxcore/ix86/ix86.c
index 763552e8..d701e899 100644
--- a/libpcsxcore/ix86/ix86.c
+++ b/libpcsxcore/ix86/ix86.c
@@ -25,6 +25,10 @@
#include "ix86.h"
+s8 *x86Ptr;
+u8 *j8Ptr[32];
+u32 *j32Ptr[32];
+
void x86Init() {
}
diff --git a/libpcsxcore/ix86/ix86.h b/libpcsxcore/ix86/ix86.h
index 3ace6122..2b60dfff 100644
--- a/libpcsxcore/ix86/ix86.h
+++ b/libpcsxcore/ix86/ix86.h
@@ -26,6 +26,10 @@
#ifndef __IX86_H__
#define __IX86_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
+
// include basic types
#include "../psxcommon.h"
#include "../r3000a.h"
@@ -93,9 +97,9 @@
#define XMM6 6
#define XMM7 7
-s8 *x86Ptr;
-u8 *j8Ptr[32];
-u32 *j32Ptr[32];
+extern s8 *x86Ptr;
+extern u8 *j8Ptr[32];
+extern u32 *j32Ptr[32];
void x86Init();
void x86SetPtr(char *ptr);
@@ -663,4 +667,7 @@ void XORPSRtoR(int to,int from);
void ANDPSMtoR(int to,int from);
void ANDPSRtoR(int to,int from);
-#endif /* __IX86_H__ */
+#ifdef __cplusplus
+}
+#endif
+#endif