From c6332c1963c7c13261192f2a406f3dbaf3a18a97 Mon Sep 17 00:00:00 2001
From: bje <bje>
Date: Sun, 4 Oct 1998 02:05:52 +0000
Subject: 1998-10-04  Ben Elliston  <bje@cygnus.com>         * configure.in:
 Test for __stdcall, not _stdcall. Typo. 	* configure: Regenerate.

---
 ChangeLog    | 4 ++++
 configure    | 4 ++--
 configure.in | 4 ++--
 3 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index d43cfe1..2f041e3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 1998-10-04  Ben Elliston  <bje@cygnus.com>
 
+	* configure.in: Test for __stdcall, not _stdcall. Typo.
+
+	* configure: Regenerate.
+
 	* attr.c (pthread_attr_setstackaddr): Remove FIXME comment. Win32
 	does know about ENOSYS after all.
 	(pthread_attr_setstackaddr): Likewise.
diff --git a/configure b/configure
index 8cd92d5..3b660a4 100755
--- a/configure
+++ b/configure
@@ -945,7 +945,7 @@ else
 #include "confdefs.h"
 
 int main() {
-int _stdcall foo();
+int __stdcall foo();
 ; return 0; }
 EOF
 if { (eval echo configure:952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
@@ -964,7 +964,7 @@ echo "$ac_t""$p32_cv_stdcall" 1>&6
 
 if test x$p32_cv_stdcall = xyes ; then
   cat >> confdefs.h <<\EOF
-#define STDCALL _stdcall
+#define STDCALL __stdcall
 EOF
 
 else
diff --git a/configure.in b/configure.in
index f3726f6..76c78ea 100644
--- a/configure.in
+++ b/configure.in
@@ -16,11 +16,11 @@ then
   fi
 fi
 AC_CACHE_CHECK(for _stdcall keyword, p32_cv_stdcall,
-  AC_TRY_COMPILE( ,[int _stdcall foo();],
+  AC_TRY_COMPILE( ,[int __stdcall foo();],
     p32_cv_stdcall=yes, p32_cv_stdcall=no))
 
 if test x$p32_cv_stdcall = xyes ; then
-  AC_DEFINE(STDCALL, _stdcall)
+  AC_DEFINE(STDCALL, __stdcall)
 else
   AC_DEFINE(STDCALL,)
 fi
-- 
cgit v1.2.3