Remove extra #include <stdio.h> to fix uint

From my request at https://github.com/kstenerud/Musashi/pull/31

There was a conflict between Musahi's uint and OpenBSD's uint:

    $ cc -o m68kmake m68kmake.c
    $ ./m68kmake
    $ cc -DM68K_COMPILE_FOR_MAME=0 -c m68kcpu.c
    In file included from m68kcpu.c:565:
    In file included from /usr/include/stdio.h:46:
    /usr/include/sys/types.h:58:22: error: cannot combine with previous 'int'
          declaration specifier
    typedef unsigned int    uint;           /* Sys V compatibility */
                            ^
    ./m68kcpu.h:75:25: note: expanded from macro 'uint'
    #define uint   unsigned int
                            ^
    1 error generated.
This commit is contained in:
George Koehler 2018-06-10 16:24:35 -04:00
parent 5404dace3a
commit 6f9e418f94
2 changed files with 3 additions and 4 deletions

View file

@ -1,3 +1,3 @@
This is a copy of the Karl Stenerud's Musashi m68k emulator, available from This is a modified copy of the Karl Stenerud's Musashi m68k emulator,
https://github.com/kstenerud/Musashi. It's MIT licensed and so is compatible available from https://github.com/kstenerud/Musashi. It's MIT licensed
with the ACK. and so is compatible with the ACK.

View file

@ -562,7 +562,6 @@ void m68k_set_instr_hook_callback(void (*callback)(void))
CALLBACK_INSTR_HOOK = callback ? callback : default_instr_hook_callback; CALLBACK_INSTR_HOOK = callback ? callback : default_instr_hook_callback;
} }
#include <stdio.h>
/* Set the CPU type. */ /* Set the CPU type. */
void m68k_set_cpu_type(unsigned int cpu_type) void m68k_set_cpu_type(unsigned int cpu_type)
{ {