diff options
| author | 2009-01-15 12:35:33 +0000 | |
|---|---|---|
| committer | 2009-01-15 12:35:33 +0000 | |
| commit | 254936ce1adef9be9f3bf88f46f6ead1d2a7ca53 (patch) | |
| tree | 5f71e880b379bf92da896d95158cd8ff2982a910 | |
| parent | 7f2e4e19be32cc1a3b1f272e1a482dd201137ee1 (diff) | |
Fixed compilation errors if HAS_SAMPLES is 0
| -rw-r--r-- | src/emu/audit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/audit.c b/src/emu/audit.c index 3986093dd1f..3fd8a79448d 100644 --- a/src/emu/audit.c +++ b/src/emu/audit.c @@ -136,13 +136,13 @@ int audit_images(core_options *options, const game_driver *gamedrv, UINT32 valid int audit_samples(core_options *options, const game_driver *gamedrv, audit_record **audit) { + int records = 0; +#if HAS_SAMPLES machine_config *config = machine_config_alloc(gamedrv->machine_config); audit_record *record; int sndnum, sampnum; - int records = 0; /* count the number of sample records attached to this driver */ -#if HAS_SAMPLES for (sndnum = 0; sndnum < ARRAY_LENGTH(config->sound); sndnum++) if (config->sound[sndnum].type == SOUND_SAMPLES) { @@ -156,7 +156,6 @@ int audit_samples(core_options *options, const game_driver *gamedrv, audit_recor records++; } } -#endif /* if no records, just quit now */ if (records == 0) @@ -214,6 +213,7 @@ int audit_samples(core_options *options, const game_driver *gamedrv, audit_recor skip: machine_config_free(config); +#endif /* HAS_SAMPLES */ return records; } |
