summaryrefslogtreecommitdiffstats
path: root/src/fat.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/fat.h
parent38ce28702691b4adc56898262a09cd1f0500a681 (diff)
Modify header files for C function declaration if C++ compilation
Diffstat (limited to 'src/fat.h')
-rw-r--r--src/fat.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/fat.h b/src/fat.h
index a211b26..5517cc0 100644
--- a/src/fat.h
+++ b/src/fat.h
@@ -22,6 +22,10 @@
#ifndef _FAT_H
#define _FAT_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define FAT1X_PART_NAME 0x2B
#define FAT32_PART_NAME 0x47
#define FAT_NAME1 0x36
@@ -144,7 +148,6 @@ int fat32_free_info(disk_t *disk_car,const partition_t *partition, const unsigne
#define FAT16_EOC 0xFFF8
#define FAT32_BAD 0x0FFFFFF7
#define FAT32_EOC 0x0FFFFFF8
-#endif
#define FAT1x_BOOT_SECTOR_SIZE 0x200
int recover_FAT(disk_t *disk_car,const struct fat_boot_sector*fat_header, partition_t *partition, const int verbose, const int dump_ind, const int backup);
@@ -155,3 +158,8 @@ int check_HPFS(disk_t *disk_car,partition_t *partition, const int verbose);
int recover_OS2MB(disk_t *disk_car, const struct fat_boot_sector*fat_header, partition_t *partition, const int verbose, const int dump_ind);
int check_OS2MB(disk_t *disk_car,partition_t *partition, const int verbose);
int check_VFAT_volume_name(const char *name, const unsigned int max_size);
+
+#ifdef __cplusplus
+} /* closing brace for extern "C" */
+#endif
+#endif