summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2012-08-24 13:40:25 -0700
committerNick Kralevich <nnk@google.com>2012-08-24 17:11:45 -0700
commit3697b52605230d1479b662dceb27b4ef1fab0567 (patch)
tree77912852a45c476a7f6439145c01c809324a6082
parenta37ce7faa6d6c7355e3c6f6e09e5268cbf29c291 (diff)
downloadbionic-3697b52605230d1479b662dceb27b4ef1fab0567.zip
bionic-3697b52605230d1479b662dceb27b4ef1fab0567.tar.gz
bionic-3697b52605230d1479b662dceb27b4ef1fab0567.tar.bz2
Allow linker to compile with -DLINKER_DEBUG=1
Change-Id: I27e734048cbcb9ed936369115582b3c734de1280
-rw-r--r--linker/linker_debug.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/linker/linker_debug.h b/linker/linker_debug.h
index f1b6208..48a7abf 100644
--- a/linker/linker_debug.h
+++ b/linker/linker_debug.h
@@ -61,6 +61,11 @@
*/
#if LINKER_DEBUG
#include "linker_format.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
extern int debug_verbosity;
#if LINKER_DEBUG_TO_LOG
extern int format_log(int, const char *, const char *, ...);
@@ -75,6 +80,11 @@ extern int format_fd(int, const char *, ...);
if (debug_verbosity > (v)) format_fd(1, x); \
} while (0)
#endif /* !LINKER_DEBUG_TO_LOG */
+
+#ifdef __cplusplus
+};
+#endif
+
#else /* !LINKER_DEBUG */
#define _PRINTVF(v,f,x...) do {} while(0)
#endif /* LINKER_DEBUG */