mirror of
https://github.com/holub/mame
synced 2025-10-04 16:34:53 +03: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
@ -19,7 +19,6 @@
|
|||||||
|
|
||||||
|
|
||||||
/* Enum listing all the CPUs */
|
/* Enum listing all the CPUs */
|
||||||
typedef enum _cpu_type cpu_type;
|
|
||||||
enum _cpu_type
|
enum _cpu_type
|
||||||
{
|
{
|
||||||
CPU_DUMMY,
|
CPU_DUMMY,
|
||||||
@ -208,6 +207,7 @@ enum _cpu_type
|
|||||||
CPU_MINX,
|
CPU_MINX,
|
||||||
CPU_COUNT
|
CPU_COUNT
|
||||||
};
|
};
|
||||||
|
typedef enum _cpu_type cpu_type;
|
||||||
|
|
||||||
|
|
||||||
/*************************************
|
/*************************************
|
||||||
|
@ -26,7 +26,6 @@
|
|||||||
#define MAX_SOUND 32
|
#define MAX_SOUND 32
|
||||||
|
|
||||||
/* Enum listing all the sound chips */
|
/* Enum listing all the sound chips */
|
||||||
typedef enum _sound_type sound_type;
|
|
||||||
enum _sound_type
|
enum _sound_type
|
||||||
{
|
{
|
||||||
SOUND_DUMMY,
|
SOUND_DUMMY,
|
||||||
@ -133,6 +132,7 @@ enum _sound_type
|
|||||||
|
|
||||||
SOUND_COUNT
|
SOUND_COUNT
|
||||||
};
|
};
|
||||||
|
typedef enum _sound_type sound_type;
|
||||||
|
|
||||||
|
|
||||||
/* Sound information constants */
|
/* Sound information constants */
|
||||||
|
Loading…
Reference in New Issue
Block a user