From a7e73d030aff4a8c06de1edf024a41e86b9f8a04 Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Sat, 16 Feb 2008 08:56:29 +0000 Subject: [PATCH] Added naive snprintf support. --- cpu/6502/6502def.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cpu/6502/6502def.h b/cpu/6502/6502def.h index 24d9530cf..5c7bc03ab 100644 --- a/cpu/6502/6502def.h +++ b/cpu/6502/6502def.h @@ -30,7 +30,7 @@ * * Author: Oliver Schmidt * - * @(#)$Id: 6502def.h,v 1.9 2008/01/01 19:47:03 oliverschmidt Exp $ + * @(#)$Id: 6502def.h,v 1.10 2008/02/16 08:56:29 oliverschmidt Exp $ */ #ifndef __6502DEF_H__ @@ -54,6 +54,9 @@ typedef int32_t s32_t; #define CCIF #define CLIF +#define HAVE_SNPRINTF +#define snprintf(buf, len, ...) sprintf(buf, __VA_ARGS__) + #define CLOCK_CONF_SECOND 2 typedef unsigned short clock_time_t;