mirror of
https://github.com/mamedev/mame.git
synced 2024-11-18 10:06:19 +01:00
(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.
This commit is contained in:
parent
c96a3b766a
commit
fd5b288fd3
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
||||
/*************************************
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue