summaryrefslogblamecommitdiff
path: root/sys-libs/librpc/files/librpc-20151104-fix-throw-decls.patch
blob: fb97933ff1daa03de835c6512e4e6b8acb10e252 (plain) (tree)


























                                                                                   
--- librpc-uclibc-a921e3d/rpc/compat.h.old	2015-11-04 19:33:16.000000000 +0100
+++ librpc-uclibc-a921e3d/rpc/compat.h	2016-08-30 10:01:17.226733271 +0100
@@ -4,6 +4,24 @@
 #define _XOPEN_SOURCE
 #define _GNU_SOURCE
 
+#if !defined(__THROW)
+#	if defined(__cplusplus)
+#		define __THROW throw()
+#	else
+#		define __THROW
+#	endif
+#endif
+
+#if !defined(__BEGIN_DECLS) && !defined(__END_DECLS)
+#	if defined(__cplusplus)
+#		define __BEGIN_DECLS extern "C" {
+#		define __END_DECLS }
+#	else
+#		define __BEGIN_DECLS
+#		define __END_DECLS
+#	endif
+#endif
+
 #include <features.h>
 #include <errno.h>