diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-05-08 01:16:38 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-05-08 01:16:38 +0000 |
| commit | 4d39defcb59600513ff65a688c54f3d6b13ca63a (patch) | |
| tree | c1b89b128f8c7f53a277a8cac28979d02357d083 /libpcsxcore/ppc | |
| parent | aaaf3199b1afd1e5f88f23ce40305a5df5455599 (diff) | |
| download | pcsxr-4d39defcb59600513ff65a688c54f3d6b13ca63a.tar.gz | |
more cleanups.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@47580 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore/ppc')
| -rw-r--r-- | libpcsxcore/ppc/pGte.h | 12 | ||||
| -rw-r--r-- | libpcsxcore/ppc/ppc.h | 30 | ||||
| -rw-r--r-- | libpcsxcore/ppc/reguse.h | 10 |
3 files changed, 28 insertions, 24 deletions
diff --git a/libpcsxcore/ppc/pGte.h b/libpcsxcore/ppc/pGte.h index 3f109fef..a968460b 100644 --- a/libpcsxcore/ppc/pGte.h +++ b/libpcsxcore/ppc/pGte.h @@ -16,6 +16,13 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307 USA */ +#ifndef PGET_H +#define PGET_H + +#ifdef __cplusplus +extern "C" { +#endif + int psxCP2time[64] = { 2, 16 , 1 , 1, 1, 1 , 8, 1, // 00 1 , 1 , 1 , 1, 6 , 1 , 1 , 1, // 08 @@ -77,3 +84,8 @@ CP2_FUNCNC(RTPT); CP2_FUNC(GPF); CP2_FUNC(GPL); CP2_FUNCNC(NCCT); + +#ifdef __cplusplus +} +#endif +#endif diff --git a/libpcsxcore/ppc/ppc.h b/libpcsxcore/ppc/ppc.h index 8385da5b..a6134d4f 100644 --- a/libpcsxcore/ppc/ppc.h +++ b/libpcsxcore/ppc/ppc.h @@ -7,6 +7,10 @@ #ifndef __PPC_H__ #define __PPC_H__ +#ifdef __cplusplus +extern "C" { +#endif + // include basic types #include "../psxcommon.h" #include "ppc_mnemonics.h" @@ -50,25 +54,7 @@ u16 dynMemRead16(u32 mem); u32 dynMemRead32(u32 mem); void dynMemWrite32(u32 mem, u32 val); -#endif /* __PPC_H__ */ - - - - - - - - - - - - - - - - - - - - - +#ifdef __cplusplus +} +#endif +#endif diff --git a/libpcsxcore/ppc/reguse.h b/libpcsxcore/ppc/reguse.h index 69001ef3..de42dece 100644 --- a/libpcsxcore/ppc/reguse.h +++ b/libpcsxcore/ppc/reguse.h @@ -1,7 +1,10 @@ - #ifndef __REGUSE_H__ #define __REGUSE_H__ +#ifdef __cplusplus +extern "C" { +#endif + // include basic types #include "../psxcommon.h" @@ -74,4 +77,7 @@ int useOfPsxReg(u32 code, int use, int psxreg) __attribute__ ((__pure__));; int nextPsxRegUse(u32 pc, int psxreg) __attribute__ ((__pure__));; int isPsxRegUsed(u32 pc, int psxreg) __attribute__ ((__pure__));; -#endif /* __REGUSE_H__ */ +#ifdef __cplusplus +} +#endif +#endif |
