From 254e7577bf2f92f285b08be68f7d71075702ff60 Mon Sep 17 00:00:00 2001 From: redcode Date: Mon, 23 Dec 2013 23:28:17 +0100 Subject: [PATCH] C++ envelope --- Z80.CPU/1.0/API/modules/emulation/CPU/Z80.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Z80.CPU/1.0/API/modules/emulation/CPU/Z80.h b/Z80.CPU/1.0/API/modules/emulation/CPU/Z80.h index ebd2d6e..2a4ca2d 100644 --- a/Z80.CPU/1.0/API/modules/emulation/CPU/Z80.h +++ b/Z80.CPU/1.0/API/modules/emulation/CPU/Z80.h @@ -30,6 +30,10 @@ typedef struct { } cb; } Z80; +#ifdef __cplusplus +extern "C" { +#endif + qsize z80_run (Z80* object, qsize cycles); @@ -43,4 +47,8 @@ void z80_nmi (Z80* object); void z80_irq (Z80* object, qboolean state); +#ifdef __cplusplus +} +#endif + #endif /* __Z80_H__ */