summaryrefslogtreecommitdiffstats
path: root/src/win32.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/win32.h
parent38ce28702691b4adc56898262a09cd1f0500a681 (diff)
Modify header files for C function declaration if C++ compilation
Diffstat (limited to 'src/win32.h')
-rw-r--r--src/win32.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/win32.h b/src/win32.h
index 09e4922..eca36f4 100644
--- a/src/win32.h
+++ b/src/win32.h
@@ -21,10 +21,16 @@
*/
#ifndef _WIN32_H
#define _WIN32_H
+#ifdef __cplusplus
+extern "C" {
+#endif
#if defined(__CYGWIN__) || defined(__MINGW32__)
disk_t *file_test_availability_win32(const char *device, const int verbose, const arch_fnct_t *arch, const int testdisk_mode);
unsigned int disk_get_sector_size_win32(HANDLE handle, const char *device, const int verbose);
uint64_t disk_get_size_win32(HANDLE handle, const char *device, const int verbose);
void disk_get_geometry_win32(CHSgeometry_t *geom, HANDLE handle, const char *device, const int verbose);
#endif
+#ifdef __cplusplus
+} /* closing brace for extern "C" */
+#endif
#endif