[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/3] C API - Allow clients to define their own version of SPD_DEB
From: |
Luke Yelavich |
Subject: |
[PATCH 3/3] C API - Allow clients to define their own version of SPD_DEBUG |
Date: |
Mon, 27 Jul 2009 16:20:27 +1000 |
From: Luke Yelavich <address@hidden>
To: address@hidden
Thanks to Jeremy Whiting <jeremy at scitools.com> for the patch.
---
src/c/api/libspeechd.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/c/api/libspeechd.h b/src/c/api/libspeechd.h
index 700afbe..576a299 100644
--- a/src/c/api/libspeechd.h
+++ b/src/c/api/libspeechd.h
@@ -33,8 +33,10 @@
extern "C" {
#endif
+#ifdef LIBSPEECHD_DEBUG
/* Debugging */
FILE* spd_debug;
+#endif
/* Unless there is an fatal error, it doesn't print anything */
#define SPD_FATAL(msg) { printf("Fatal error (libspeechd) [%s:%d]:"msg,
__FILE__, __LINE__); fflush(stdout); exit(EXIT_FAILURE); }
--
1.6.3.3