--- src/cpu/m68k/m68k.h.orig 2026-08-22 00:54:57 UTC +++ src/cpu/m68k/m68k.h @@ -1,10 +1,6 @@ #ifndef M68K__HEADER #define M68K__HEADER -#ifdef __cplusplus - extern "C" { -#endif - /* ======================================================================== */ /* ========================= LICENSING & COPYRIGHT ======================== */ /* ======================================================================== */ @@ -122,8 +118,10 @@ typedef enum _m68k_register_t m68k_register_t; }; typedef enum _m68k_register_t m68k_register_t; +#ifdef __cplusplus + extern "C" { +#endif - /* ======================================================================== */ /* ====================== FUNCTIONS CALLED BY THE CPU ===================== */ /* ======================================================================== */ @@ -384,21 +382,19 @@ unsigned int m68k_disassemble_raw(char* str_buff, unsi */ unsigned int m68k_disassemble_raw(char* str_buff, unsigned int pc, const unsigned char* opdata, const unsigned char* argdata, unsigned int cpu_type); - /* ======================================================================== */ -/* ============================= CONFIGURATION ============================ */ -/* ======================================================================== */ - -/* Import the configuration for this build */ -#include "m68kconf.h" - - -/* ======================================================================== */ /* ============================== END OF FILE ============================= */ /* ======================================================================== */ #ifdef __cplusplus } #endif + +/* ======================================================================== */ +/* ============================= CONFIGURATION ============================ */ +/* ======================================================================== */ + +/* Import the configuration for this build */ +#include "m68kconf.h" #endif /* M68K__HEADER */