cares-compilers.m4: double underscore decoration for visibility attribute
authorYang Tse <yangsita@gmail.com>
Tue, 17 Apr 2012 10:57:09 +0000 (12:57 +0200)
committerYang Tse <yangsita@gmail.com>
Tue, 17 Apr 2012 11:30:00 +0000 (13:30 +0200)
m4/cares-compilers.m4

index 80cfb5c6d0270ea78f1dd1a3aaaf327bc94532a4..aac86d49830b9917ff28fcc232d7661be93b293f 100644 (file)
@@ -1,6 +1,6 @@
 #***************************************************************************
 #
-# Copyright (C) 2009-2011 by Daniel Stenberg et al
+# Copyright (C) 2009-2012 by Daniel Stenberg et al
 #
 # Permission to use, copy, modify, and distribute this software and its
 # documentation for any purpose and without fee is hereby granted, provided
@@ -15,7 +15,7 @@
 #***************************************************************************
 
 # File version for 'aclocal' use. Keep it a single number.
-# serial 68
+# serial 69
 
 
 dnl CARES_CHECK_COMPILER
@@ -1425,7 +1425,7 @@ AC_DEFUN([CARES_CHECK_COMPILER_SYMBOL_HIDING], [
   case "$compiler_id" in
     CLANG)
       dnl All versions of clang support -fvisibility=
-      tmp_EXTERN="__attribute__ ((visibility (\"default\")))"
+      tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
       tmp_CFLAGS="-fvisibility=hidden"
       supports_symbol_hiding="yes"
       ;;
@@ -1433,7 +1433,7 @@ AC_DEFUN([CARES_CHECK_COMPILER_SYMBOL_HIDING], [
       dnl Only gcc 3.4 or later
       if test "$compiler_num" -ge "304"; then
         if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
-          tmp_EXTERN="__attribute__ ((visibility (\"default\")))"
+          tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
           tmp_CFLAGS="-fvisibility=hidden"
           supports_symbol_hiding="yes"
         fi
@@ -1452,7 +1452,7 @@ AC_DEFUN([CARES_CHECK_COMPILER_SYMBOL_HIDING], [
               printf("icc fvisibility bug test");
             ]])
           ],[
-            tmp_EXTERN="__attribute__ ((visibility (\"default\")))"
+            tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
             tmp_CFLAGS="-fvisibility=hidden"
             supports_symbol_hiding="yes"
           ])