aboutsummaryrefslogtreecommitdiffstats
path: root/skeletons
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2017-08-03 23:19:23 -0700
committerLev Walkin <vlm@lionet.info>2017-08-03 23:19:23 -0700
commit2b290bef16a01beebb4bbf7212f789241d973d7e (patch)
tree0b6c37d1dc9cd81007f031bc7b20ffc83f6cb64c /skeletons
parentbc0b0c5062cdc55f8160993441f6bb84e737d333 (diff)
use macro instead of a symbol for debugging, if C99
Diffstat (limited to 'skeletons')
-rw-r--r--skeletons/asn_internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/skeletons/asn_internal.h b/skeletons/asn_internal.h
index 7c9325c7..ebf44f9b 100644
--- a/skeletons/asn_internal.h
+++ b/skeletons/asn_internal.h
@@ -59,7 +59,11 @@ void ASN_DEBUG_f(const char *fmt, ...);
#define ASN_DEBUG ASN_DEBUG_f
#endif /* __GNUC__ */
#else /* EMIT_ASN_DEBUG != 1 */
+#if __STDC_VERSION__ >= 199901L
+#define ASN_DEBUG(...) do{}while(0)
+#else /* not C99 */
static void ASN_DEBUG(const char *fmt, ...) { (void)fmt; }
+#endif /* C99 or better */
#endif /* EMIT_ASN_DEBUG */
#endif /* ASN_DEBUG */