From 8c195a6502ab171dde27aa23ba9251079e18d3ac Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 21 Mar 2009 15:59:45 +0000 Subject: Handler ZDI preprocessor git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1632 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/examples/uip/main.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'nuttx/examples/uip') diff --git a/nuttx/examples/uip/main.c b/nuttx/examples/uip/main.c index fd67ff95f..1cc275814 100644 --- a/nuttx/examples/uip/main.c +++ b/nuttx/examples/uip/main.c @@ -86,10 +86,18 @@ * Definitions ****************************************************************************/ -#ifdef CONFIG_DEBUG -# define message(...) lib_lowprintf(__VA_ARGS__) +#ifdef CONFIG_CPP_HAVE_VARARGS +# ifdef CONFIG_DEBUG +# define message(...) lib_lowprintf(__VA_ARGS__) +# else +# define message(...) printf(__VA_ARGS__) +# endif #else -# define message(...) printf(__VA_ARGS__) +# ifdef CONFIG_DEBUG +# define message lib_lowprintf +# else +# define message (void) +# endif #endif /**************************************************************************** -- cgit v1.2.3