From fd5b288fd3d799def81efb1f3a20d6785ed42730 Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Fri, 11 Jan 2008 06:32:16 +0000 Subject: [PATCH] (From Dave Dribin) Here's a patch that fixes compile errors when compiling a C++ source file including "render.h" and "palette.h". C++ (at least g++) does not like typedef's for an enum coming before the actual enum. --- src/emu/cpuexec.h | 2 +- src/emu/sndintrf.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emu/cpuexec.h b/src/emu/cpuexec.h index 9a7e551c182..ae4dc9e9229 100644 --- a/src/emu/cpuexec.h +++ b/src/emu/cpuexec.h @@ -19,7 +19,6 @@ /* Enum listing all the CPUs */ -typedef enum _cpu_type cpu_type; enum _cpu_type { CPU_DUMMY, @@ -208,6 +207,7 @@ enum _cpu_type CPU_MINX, CPU_COUNT }; +typedef enum _cpu_type cpu_type; /************************************* diff --git a/src/emu/sndintrf.h b/src/emu/sndintrf.h index 78f94dc5c4b..d82728ebe02 100644 --- a/src/emu/sndintrf.h +++ b/src/emu/sndintrf.h @@ -26,7 +26,6 @@ #define MAX_SOUND 32 /* Enum listing all the sound chips */ -typedef enum _sound_type sound_type; enum _sound_type { SOUND_DUMMY, @@ -133,6 +132,7 @@ enum _sound_type SOUND_COUNT }; +typedef enum _sound_type sound_type; /* Sound information constants */