summaryrefslogtreecommitdiff
path: root/src/theatre_detect.h
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-03-02 14:49:21 -0500
committerAlex Deucher <alex@cube.(none)>2008-03-02 14:49:21 -0500
commitf7769ea86e265f347eb58c517ccb5ef8b35eec27 (patch)
tree4ffbd3319821036f0c1d9718893742c32f134293 /src/theatre_detect.h
parenta4398ac3ad77216f2c8aa628425bef5f2912a0a9 (diff)
[PATCH] Ensure symbols used by other modules are visible.
The xf86-video-ati drivers are one of the cases where LoaderSymbol is widely used in some obscure ways. This patch fixes the problem, and allows compiling with -fvisibility=hidden.
Diffstat (limited to 'src/theatre_detect.h')
-rw-r--r--src/theatre_detect.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/theatre_detect.h b/src/theatre_detect.h
index 5fed160e..53d8d119 100644
--- a/src/theatre_detect.h
+++ b/src/theatre_detect.h
@@ -38,9 +38,9 @@
*/
-TheatrePtr DetectTheatre(GENERIC_BUS_Ptr b);
+#define xf86_DetectTheatre DetectTheatre
+_X_EXPORT TheatrePtr DetectTheatre(GENERIC_BUS_Ptr b);
-#define xf86_DetectTheatre ((TheatrePtr (*)(GENERIC_BUS_Ptr))LoaderSymbol("DetectTheatre"))
#endif