all repos — mgba @ d48dad27d1609589a1949541b2f5425eba21cafb

mGBA Game Boy Advance Emulator

Fix build against C++
Jeffrey Pfau jeffrey@endrift.com
Sun, 20 Jul 2014 16:37:54 -0700
commit

d48dad27d1609589a1949541b2f5425eba21cafb

parent

e77238e5ef289aab0b871ef7e8bcf336c96e78ca

2 files changed, 5 insertions(+), 1 deletions(-)

jump to
M src/debugger/debugger.hsrc/debugger/debugger.h

@@ -5,7 +5,7 @@ #include "common.h"

#include "arm.h" -const uint32_t ARM_DEBUGGER_ID; +extern const uint32_t ARM_DEBUGGER_ID; enum DebuggerState { DEBUGGER_PAUSED,
M src/util/socket.hsrc/util/socket.h

@@ -3,6 +3,10 @@ #define SOCKET_H

#include "common.h" +#ifdef __cplusplus +#define restrict __restrict__ +#endif + #ifdef _WIN32 #include <winsock2.h> #include <ws2tcpip.h>