summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2009-09-27 21:23:56 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2009-09-27 21:23:56 +0000
commit23864e84141ca15f7593aa022c715fe3bfb946d9 (patch)
tree6378c7f1e5e31f5601da792dfac0097f8545a407
parent3c1dc7869cd1f677a5bb64ff15a556082eaf87c2 (diff)
use c calling conventions so that g++ doesn't mangle fpgetmask &
friends' names unbreaking at least enblend-enfuse & inkscape on macppc & alpha reported, tested: ajacoutot@, sthen@ ok: millert@, otto@
-rw-r--r--include/ieeefp.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/ieeefp.h b/include/ieeefp.h
index 8812f6bf52e..627ce507aa1 100644
--- a/include/ieeefp.h
+++ b/include/ieeefp.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieeefp.h,v 1.3 2002/02/16 21:27:17 millert Exp $ */
+/* $OpenBSD: ieeefp.h,v 1.4 2009/09/27 21:23:55 martynas Exp $ */
/*
* Written by J.T. Conklin, Apr 6, 1995
@@ -11,11 +11,13 @@
#include <sys/cdefs.h>
#include <machine/ieeefp.h>
+__BEGIN_DECLS
extern fp_rnd fpgetround(void);
extern fp_rnd fpsetround(fp_rnd);
extern fp_except fpgetmask(void);
extern fp_except fpsetmask(fp_except);
extern fp_except fpgetsticky(void);
extern fp_except fpsetsticky(fp_except);
+__END_DECLS
#endif /* _IEEEFP_H_ */