diff options
Diffstat (limited to 'hacks/m6502.c')
-rw-r--r-- | hacks/m6502.c | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/hacks/m6502.c b/hacks/m6502.c index d7c78e1..fb9f9c2 100644 --- a/hacks/m6502.c +++ b/hacks/m6502.c @@ -12,19 +12,18 @@ * Created: 07-May-2007 */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif -#if defined(HAVE_STDINT_H) -#include <stdint.h> -#elif defined(HAVE_INTTYPES_H) -#include <inttypes.h> -#endif -#include <string.h> #include "screenhack.h" #include "analogtv.h" #include "asm6502.h" +#include <string.h> + +#if defined(HAVE_STDINT_H) +# include <stdint.h> +#elif defined(HAVE_INTTYPES_H) +# include <inttypes.h> +#endif + # ifdef __GNUC__ __extension__ /* don't warn about "string length is greater than the length ISO C89 compilers are required to support" when includng @@ -80,10 +79,6 @@ plot6502(Bit8 x, Bit8 y, Bit8 color, void *closure) st->pixels[x][y] = color; } -#undef countof -#define countof(x) (sizeof((x))/sizeof((*x))) - - static void start_rand_bin_prog(machine_6502 *machine, struct state *st){ int n = st->which; |