summaryrefslogtreecommitdiffstats
path: root/src/bsd.h
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-01-10 16:04:39 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-01-10 16:04:39 +0100
commit86f46991fb400a57d6c84699818dfeccfa08cc2a (patch)
treeb4b66dfa6ce9ec06c4de918104054497ab38eae8 /src/bsd.h
parent38ce28702691b4adc56898262a09cd1f0500a681 (diff)
Modify header files for C function declaration if C++ compilation
Diffstat (limited to 'src/bsd.h')
-rw-r--r--src/bsd.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bsd.h b/src/bsd.h
index 1c14459..5739b12 100644
--- a/src/bsd.h
+++ b/src/bsd.h
@@ -23,6 +23,9 @@
#ifndef _BSD_H
#define _BSD_H
+#ifdef __cplusplus
+extern "C" {
+#endif
/* BSD_DISKLABEL_SIZE is 276 */
#define BSD_DISKLABEL_SIZE 512
#define STANDALONE
@@ -167,5 +170,7 @@ struct disklabel {
#define TST_FS_JFS2 21 /* IBM JFS2 */
int check_BSD(disk_t *disk_car,partition_t *partition,const int verbose,const unsigned int max_partitions);
int recover_BSD(disk_t *disk_car, const struct disklabel*bsd_header,partition_t *partition,const int verbose, const int dump_ind);
-
+#ifdef __cplusplus
+} /* closing brace for extern "C" */
+#endif
#endif