mesa: remove support for GCC older than 4.1.0
authorTimothy Arceri <t_arceri@yahoo.com.au>
Fri, 12 Dec 2014 09:44:26 +0000 (20:44 +1100)
committerTimothy Arceri <t_arceri@yahoo.com.au>
Tue, 16 Dec 2014 21:37:35 +0000 (08:37 +1100)
Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
Reviewed-By: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/main/compiler.h

index 34671dc7eb07fbf59e6d066c03364c6105eb6c8a..cdc843db2ba62fa7cccf5b41ec8ff2d5a4bcf3e7 100644 (file)
@@ -122,7 +122,7 @@ extern "C" {
  * inline a static function that we later use in an alias. - ajax
  */
 #ifndef PUBLIC
-#  if (defined(__GNUC__) && __GNUC__ >= 4) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
+#  if defined(__GNUC__) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
 #    define PUBLIC __attribute__((visibility("default")))
 #    define USED __attribute__((used))
 #  else