summaryrefslogtreecommitdiff
path: root/gmp-h.in
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2009-05-01 14:04:02 +0200
committerTorbjorn Granlund <tege@gmplib.org>2009-05-01 14:04:02 +0200
commitb7c5259cd93dba3e79d40eead94e134502654fd4 (patch)
treeef20dbe22d1ccd2c9b8066c090a97a04edce087c /gmp-h.in
parent7442e35ea1515505563f5eb114bd0e7ab0e0eb2d (diff)
downloadgmp-b7c5259cd93dba3e79d40eead94e134502654fd4.tar.gz
(__GMP_EXTERN_INLINE): Support for more systems.
Diffstat (limited to 'gmp-h.in')
-rw-r--r--gmp-h.in13
1 files changed, 12 insertions, 1 deletions
diff --git a/gmp-h.in b/gmp-h.in
index d64d563a5..a48d0b02f 100644
--- a/gmp-h.in
+++ b/gmp-h.in
@@ -1,7 +1,7 @@
/* Definitions for GNU multiple precision functions. -*- mode: c -*-
Copyright 1991, 1993, 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002, 2003,
-2004, 2005, 2006, 2007 Free Software Foundation, Inc.
+2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -455,6 +455,17 @@ typedef __mpq_struct *mpq_ptr;
#endif
#endif
+/* Microsoft's C compiler accepts __inline */
+#ifdef _MSC_VER
+#define __GMP_EXTERN_INLINE __inline
+#endif
+
+/* Recent enough Sun C compilers accept "static inline" */
+#if (defined (__SUNPRO_C) && __SUNPRO_C >= 0x540) || defined (__SUNPRO_CC)
+#define __GMP_EXTERN_INLINE static inline
+#endif
+
+
/* C++ always has "inline" and since it's a normal feature the linker should
discard duplicate non-inlined copies, or if it doesn't then that's a
problem for everyone, not just GMP. */