summaryrefslogtreecommitdiff
path: root/gcc/gthr-gnat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gthr-gnat.c')
-rw-r--r--gcc/gthr-gnat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/gthr-gnat.c b/gcc/gthr-gnat.c
index 85d57bcdb15..2d55fdfc7ae 100644
--- a/gcc/gthr-gnat.c
+++ b/gcc/gthr-gnat.c
@@ -28,7 +28,9 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "gthr-gnat.h"
+#ifndef HIDE_EXPORTS
#pragma GCC visibility push(default)
+#endif
#ifdef __cplusplus
#define UNUSED(x)
@@ -81,4 +83,6 @@ __gthread_mutex_unlock (__gthread_mutex_t * UNUSED (mutex))
return 0;
}
+#ifndef HIDE_EXPORTS
#pragma GCC visibility pop
+#endif