summaryrefslogtreecommitdiffstats
path: root/lib/blkid/blkidP.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/blkid/blkidP.h')
-rw-r--r--lib/blkid/blkidP.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/blkid/blkidP.h b/lib/blkid/blkidP.h
index b3fe4a6..dad8bfb 100644
--- a/lib/blkid/blkidP.h
+++ b/lib/blkid/blkidP.h
@@ -23,9 +23,12 @@
#endif
#include <blkid/blkid.h>
-
#include <blkid/list.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifdef __GNUC__
#define __BLKID_ATTR(x) __attribute__(x)
#else
@@ -149,8 +152,10 @@ extern char *blkid_strndup(const char *s, const int length);
#include <stdio.h>
extern int blkid_debug_mask;
#define DBG(m,x) if ((m) & blkid_debug_mask) x;
+#define INC_LINENO lineno++
#else
#define DBG(m,x)
+#define INC_LINENO
#endif
#ifdef CONFIG_BLKID_DEBUG