[Expat-checkins] expat/lib internal.h,1.1,1.2
Fred L. Drake
fdrake@users.sourceforge.net
Fri, 06 Sep 2002 14:29:48 -0700
Update of /cvsroot/expat/expat/lib
In directory usw-pr-cvs1:/tmp/cvs-serv29336
Modified Files:
internal.h
Log Message:
Disable FASTCALL on Windows since it turned out not to be as effective
as hoped. Leaving the definition in the file so we'll know what it
was that didn't work, and hopefully find something better in the
future.
Index: internal.h
===================================================================
RCS file: /cvsroot/expat/expat/lib/internal.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- internal.h 5 Sep 2002 01:56:29 -0000 1.1
+++ internal.h 6 Sep 2002 21:29:46 -0000 1.2
@@ -15,8 +15,14 @@
#if defined(__GNUC__)
#define FASTCALL __attribute__((stdcall, regparm(3)))
#elif defined(WIN32)
-#define FASTCALL __fastcall
-#else
+/* XXX This seems to have an unexpected negative effect on Windows so
+ we'll disable it for now on that platform. It may be reconsidered
+ for a future release if it can be made more effective.
+*/
+/* #define FASTCALL __fastcall */
+#endif
+
+#ifndef FASTCALL
#define FASTCALL
#endif