add patch to make libart work again with c++

(also found in upstream svn)

at least kdelibs3 is happy again

"Please commit!" martynas@
This commit is contained in:
jasper 2007-04-25 14:17:09 +00:00
parent d1c0d51d44
commit 1705087d94
2 changed files with 23 additions and 2 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.17 2007/04/24 20:44:29 jasper Exp $
# $OpenBSD: Makefile,v 1.18 2007/04/25 14:17:09 jasper Exp $
COMMENT= "high-performance 2D graphics library"
VERSION= 2.3.19
DISTNAME= libart_lgpl-${VERSION}
PKGNAME= libart-${VERSION}
PKGNAME= libart-${VERSION}p0
SHARED_LIBS += art_lgpl_2 5.19 # .5.19
CATEGORIES= graphics

View File

@ -0,0 +1,21 @@
$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