summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/compiler.h
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2015-03-03 09:01:03 -0700
committerBrian Paul <brianp@vmware.com>2015-03-04 08:33:48 -0700
commit5bebd7099ab22c6f1498cd928170561718d6ff36 (patch)
tree0c7f8c9c773312d1a753974825e40064222a2397 /src/mesa/main/compiler.h
parent25656753d765680ea4a592ff812deac132e2262d (diff)
downloadexternal_mesa3d-5bebd7099ab22c6f1498cd928170561718d6ff36.zip
external_mesa3d-5bebd7099ab22c6f1498cd928170561718d6ff36.tar.gz
external_mesa3d-5bebd7099ab22c6f1498cd928170561718d6ff36.tar.bz2
mesa: consolidate PUBLIC macro definition
Define the macro in src/util/macros.h rather than in two different places. Note that USED isn't actually used anywhere at this time. Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/mesa/main/compiler.h')
-rw-r--r--src/mesa/main/compiler.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h
index 7f2d732..95581fb 100644
--- a/src/mesa/main/compiler.h
+++ b/src/mesa/main/compiler.h
@@ -83,26 +83,6 @@ extern "C" {
#endif
-/**
- * PUBLIC/USED macros
- *
- * If we build the library with gcc's -fvisibility=hidden flag, we'll
- * use the PUBLIC macro to mark functions that are to be exported.
- *
- * We also need to define a USED attribute, so the optimizer doesn't
- * inline a static function that we later use in an alias. - ajax
- */
-#ifndef PUBLIC
-# if defined(__GNUC__) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
-# define PUBLIC __attribute__((visibility("default")))
-# define USED __attribute__((used))
-# else
-# define PUBLIC
-# define USED
-# endif
-#endif
-
-
/* XXX: Use standard `__func__` instead */
#ifndef __FUNCTION__
# define __FUNCTION__ __func__