summaryrefslogtreecommitdiff
path: root/lib/idn-free.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/idn-free.h')
-rw-r--r--lib/idn-free.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/idn-free.h b/lib/idn-free.h
index 3edd263..90f5d1b 100644
--- a/lib/idn-free.h
+++ b/lib/idn-free.h
@@ -1,6 +1,7 @@
/* idn-free.h --- Invoke the `free' function releasing memory
* allocated by libidn functions.
- * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Simon Josefsson
+ * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Simon
+ * Josefsson
*
* This file is part of GNU Libidn.
*
@@ -35,6 +36,11 @@
# endif
# endif
+# ifdef __cplusplus
+extern "C"
+{
+# endif
+
/* I don't recommend using this interface in general. Use `free'.
*
* I'm told Microsoft Windows may use one set of `malloc' and `free'
@@ -55,4 +61,8 @@
extern void IDNAPI idn_free (void *ptr);
+# ifdef __cplusplus
+}
+# endif
+
#endif /* IDN_FREE_H */