summaryrefslogtreecommitdiff
path: root/nuttx/examples/uip
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-03-21 15:59:45 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-03-21 15:59:45 +0000
commit8c195a6502ab171dde27aa23ba9251079e18d3ac (patch)
treed5c48fb7c7fb53024fcb159608d056d776f0f9d5 /nuttx/examples/uip
parentdd6636d45615d762e82579f1cedf9d174b1873b1 (diff)
downloadpx4-nuttx-8c195a6502ab171dde27aa23ba9251079e18d3ac.tar.gz
px4-nuttx-8c195a6502ab171dde27aa23ba9251079e18d3ac.tar.bz2
px4-nuttx-8c195a6502ab171dde27aa23ba9251079e18d3ac.zip
Handler ZDI preprocessor
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1632 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/uip')
-rw-r--r--nuttx/examples/uip/main.c14
1 files changed, 11 insertions, 3 deletions
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
/****************************************************************************