summaryrefslogtreecommitdiff
path: root/lib/idn-free.h
diff options
context:
space:
mode:
authorSeonah Moon <seonah1.moon@samsung.com>2021-02-04 10:08:28 +0900
committerSeonah Moon <seonah1.moon@samsung.com>2021-02-04 10:08:57 +0900
commit99a33f08e5808e9b4ea40f9ba0d717196b2ef090 (patch)
treecc6d986a1f22e98bfcd987e83778d829f1dbecde /lib/idn-free.h
parent40d523a658c1a2e2311f0d588a96cbfb7eded09f (diff)
downloadlibidn-upstream.tar.gz
libidn-upstream.tar.bz2
libidn-upstream.zip
Imported Upstream version 1.23upstream/1.23upstream
Change-Id: Icfaf3a8b6a8c778e14a771acd595696cdbded864
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 */