(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:
Aaron Giles 2008-01-11 06:32:16 +00:00
parent c96a3b766a
commit fd5b288fd3
2 changed files with 2 additions and 2 deletions

View file

@ -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;
/*************************************

View file

@ -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 */