openbsd-ports/graphics/libart/patches/patch-art_misc_h
jasper 1705087d94 add patch to make libart work again with c++
(also found in upstream svn)

at least kdelibs3 is happy again

"Please commit!" martynas@
2007-04-25 14:17:09 +00:00

22 lines
570 B
Plaintext

$OpenBSD: patch-art_misc_h,v 1.1 2007/04/25 14:17:09 jasper Exp $
--- art_misc.h.orig Wed Apr 25 11:55:05 2007
+++ art_misc.h Wed Apr 25 11:55:35 2007
@@ -34,9 +34,17 @@
#include <libart_lgpl/art_config.h>
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
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