summaryrefslogtreecommitdiff
path: root/lib/internal.h
diff options
context:
space:
mode:
authorfdrake <fdrake>2003-03-12 23:02:11 +0000
committerfdrake <fdrake>2003-03-12 23:02:11 +0000
commit6da315c45bc4942e80097a07946c5fc506410c53 (patch)
tree3d3bdf2de8b2fbd86722529634a5fca60fc56043 /lib/internal.h
parent635dde62686f5fba236e12f0a6cf253b8499c9b2 (diff)
downloadlibexpat-6da315c45bc4942e80097a07946c5fc506410c53.tar.gz
Fix FASTCALL for GCC on Solaris (SF bug #692878).
This file is becoming a liability.
Diffstat (limited to 'lib/internal.h')
-rw-r--r--lib/internal.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/internal.h b/lib/internal.h
index 1bf6baa..761291b 100644
--- a/lib/internal.h
+++ b/lib/internal.h
@@ -20,8 +20,10 @@
and therefore subject to change.
*/
-#if defined(__GNUC__)
-/* Instability reported with egcs on a RedHat Linux 7.3.
+#if defined(__GNUC__) && !defined(sun)
+/* regparm() generates warnings on Solaris boxes. See SF bug #692878.
+
+ Instability reported with egcs on a RedHat Linux 7.3.
Let's comment it out:
#define FASTCALL __attribute__((stdcall, regparm(3)))
and let's try this: