[glib] Revert "Bug 652827 - glib-2.29.8 no longer builds with mingw.org's toolchain"



commit e5fd0f5df6043887a985f922ee4a35b73585ca3e
Author: Ryan Lortie <desrt desrt ca>
Date:   Mon Oct 17 10:54:50 2011 -0400

    Revert "Bug 652827 - glib-2.29.8 no longer builds with mingw.org's toolchain"
    
    This reverts commit 349212211247781e7bec43b95cb57dddc1d0e5b1.

 configure.ac   |   12 +-----------
 glib/gatomic.c |    2 +-
 2 files changed, 2 insertions(+), 12 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index d229d3c..3faaf55 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2433,20 +2433,10 @@ if test x"$GCC" = xyes; then
 
   AC_MSG_RESULT($glib_cv_gcc_has_builtin_atomic_operations)
 fi
+
 AM_CONDITIONAL(HAVE_GCC_BUILTINS_FOR_ATOMIC_OPERATIONS,
 	       [test $glib_cv_gcc_has_builtin_atomic_operations = yes])
 
-AC_MSG_CHECKING([for Win32 atomic intrinsics])
-glib_cv_has_win32_atomic_operations=no
-AC_TRY_LINK([],
-	[int i; _InterlockedExchangeAdd (&i, 0);],
-	[glib_cv_has_win32_atomic_operations=yes],
-	[glib_cv_has_win32_atomic_operations=no])
-AC_MSG_RESULT($glib_cv_has_win32_atomic_operations)
-if test "x$glib_cv_has_win32_atomic_operations" = xyes; then
-	AC_DEFINE(HAVE_WIN32_BUILTINS_FOR_ATOMIC_OPERATIONS,1,[Have Win32 atomic intrinsics])
-fi
-
 dnl ************************
 dnl ** Check for futex(2) **
 dnl ************************
diff --git a/glib/gatomic.c b/glib/gatomic.c
index 5b354c4..0bbe14b 100644
--- a/glib/gatomic.c
+++ b/glib/gatomic.c
@@ -466,7 +466,7 @@ gsize
   return g_atomic_pointer_xor ((volatile gpointer *) atomic, val);
 }
 
-#elif defined (G_PLATFORM_WIN32) && defined(HAVE_WIN32_BUILTINS_FOR_ATOMIC_OPERATIONS)
+#elif defined (G_PLATFORM_WIN32)
 
 #include <windows.h>
 #if !defined(_M_AMD64) && !defined (_M_IA64) && !defined(_M_X64)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]