From e2495e129de8bd7a17e8ca88b86b1e29449bf723 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Wed, 14 May 2014 13:06:33 +0200 Subject: [PATCH] Bug 1008192 - Don't try to use hidden visibility on mingw. r=glandium --- configure.in | 2 +- js/src/configure.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 27b545a66df5..4548bb3b0cd2 100644 --- a/configure.in +++ b/configure.in @@ -2547,7 +2547,7 @@ AC_LANG_C dnl Check for .hidden assembler directive and visibility attribute. dnl Borrowed from glibc configure.in dnl =============================================================== -if test "$GNU_CC"; then +if test "$GNU_CC" -a "$OS_TARGET" != WINNT; then AC_DEFINE(HAVE_VISIBILITY_HIDDEN_ATTRIBUTE) AC_DEFINE(HAVE_VISIBILITY_ATTRIBUTE) if test -n "$gonkdir"; then diff --git a/js/src/configure.in b/js/src/configure.in index 4a14150b5b9e..95694adc3007 100644 --- a/js/src/configure.in +++ b/js/src/configure.in @@ -2093,7 +2093,7 @@ MOZ_CXX11 dnl Check for .hidden assembler directive and visibility attribute. dnl Borrowed from glibc configure.in dnl =============================================================== -if test "$GNU_CC"; then +if test "$GNU_CC" -a "$OS_TARGET" != WINNT; then AC_DEFINE(HAVE_VISIBILITY_HIDDEN_ATTRIBUTE) AC_DEFINE(HAVE_VISIBILITY_ATTRIBUTE) if test -n "$gonkdir"; then