- Use __typeof__ to fix detection error in GCC Ansi mode
Thomas Zimmermann
kuhundbaer at web.de
Sun Jan 20 13:31:23 CST 2008
---
configure.ac | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 8fb2daf..694cc44 100644
--- a/configure.ac
+++ b/configure.ac
@@ -662,7 +662,7 @@ then
if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
then
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlib.h>
-#include <X11/extensions/Xrandr.h>]], [[static typeof(XRRSetScreenConfigAndRate) * func;]])],
+#include <X11/extensions/Xrandr.h>]], [[static __typeof__(XRRSetScreenConfigAndRate) * func;]])],
[WINE_CHECK_SONAME(Xrandr,XRRQueryExtension,,,[$X_LIBS -lXext -lX11 $X_EXTRA_LIBS])])
fi
WINE_NOTICE_WITH(xrandr,[test "x$ac_cv_lib_soname_Xrandr" = "x"],
@@ -672,7 +672,7 @@ then
if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
then
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlib.h>
-#include <X11/extensions/Xinerama.h>]], [[static typeof(XineramaQueryScreens) * func;]])],
+#include <X11/extensions/Xinerama.h>]], [[static __typeof__(XineramaQueryScreens) * func;]])],
[WINE_CHECK_SONAME(Xinerama,XineramaQueryScreens,,,[$X_LIBS -lXext -lX11 $X_EXTRA_LIBS])])
fi
WINE_NOTICE_WITH(xinerama,[test "x$ac_cv_lib_soname_Xinerama" = "x"],
--
1.4.4.2
--------------060205080507090602010204
Content-Type: application/octet-stream;
name*0="0001-Use-__typeof__-to-fix-detection-error-in-GCC-Ansi-mode.txt.";
name*1="sig"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename*0="0001-Use-__typeof__-to-fix-detection-error-in-GCC-Ansi-mode.";
filename*1="txt.sig"
iD8DBQBHk6ST0pDUtJv9kIMRAmyCAKCYGcxTcx0aT02P1WoqH/lnp9AbVwCaAx+qMgAUB7En
hNndu7HxK7LBcL8=
--------------060205080507090602010204--
More information about the wine-patches
mailing list