From 38886de0c3e9ea5729ef23e4c653fa2822f52e8f Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 6 Apr 2021 14:43:39 +0200 Subject: xscreensaver 6.00 --- hacks/m6502.c | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) (limited to 'hacks/m6502.c') 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 -#elif defined(HAVE_INTTYPES_H) -#include -#endif -#include #include "screenhack.h" #include "analogtv.h" #include "asm6502.h" +#include + +#if defined(HAVE_STDINT_H) +# include +#elif defined(HAVE_INTTYPES_H) +# include +#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; -- cgit v1.2.3-55-g7522