summaryrefslogtreecommitdiff
path: root/extra/libart-lgpl/art_misc.h-cplusplus.patch
blob: dea8eb0a0219a1656e72aefc2be976a1042e9d2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Index: art_misc.h
===================================================================
--- art_misc.h	(revision 277)
+++ art_misc.h	(working copy)
@@ -34,9 +34,15 @@
 #include <libart_lgpl/art_config.h>
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 void *art_alloc(size_t size);
 void art_free(void *ptr);
 void *art_realloc(void *ptr, size_t size);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
 
 /* These aren't, strictly speaking, configuration macros, but they're
    damn handy to have around, and may be worth playing with for
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 277)
+++ ChangeLog	(working copy)
@@ -1,3 +1,10 @@
+2007-03-01  Frederic Crozat  <fcrozat@mandriva.com>
+
+	reviewed by: Dom Lachowicz <cinamod@hotmail.com>
+
+	* art_misc.h: Fix header when included in C++.
+	Patch from Goetz Waschk and Laurent Montel.
+
 2007-02-28  Kjartan Maraas  <kmaraas@gnome.org>
 
 	configure.in: Release 2.3.19