summaryrefslogtreecommitdiffstats
path: root/src/file_tiff.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/file_tiff.h
parent38ce28702691b4adc56898262a09cd1f0500a681 (diff)
Modify header files for C function declaration if C++ compilation
Diffstat (limited to 'src/file_tiff.h')
-rw-r--r--src/file_tiff.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/file_tiff.h b/src/file_tiff.h
index 0d08970..e09b76e 100644
--- a/src/file_tiff.h
+++ b/src/file_tiff.h
@@ -19,6 +19,10 @@
Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define TIFF_BIGENDIAN 0x4d4d
#define TIFF_LITTLEENDIAN 0x4949
#define TIFFTAG_IMAGEDESCRIPTION 270 /* info about image */
@@ -54,3 +58,6 @@ struct ifd_header {
time_t get_date_from_tiff_header(const TIFFHeader *tiff, const unsigned int tiff_size);
+#ifdef __cplusplus
+} /* closing brace for extern "C" */
+#endif