void-packages/srcpkgs/docbook2mdoc/patches/fix-decls.patch
2018-09-09 00:25:48 -03:00

21 lines
356 B
Diff

--- extern.h
+++ extern.h
@@ -119,12 +119,16 @@ enum attrval {
ATTRVAL__MAX
};
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
int isattrkey(enum nodeid node, enum attrkey key);
int isattrval(enum attrkey key, enum attrval val);
int isparent(enum nodeid node, enum nodeid parent);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif