@@ -214,7 +214,7 @@ intel_bo_destroy(struct kms_bo *_bo)
return 0;
}
-int
+_X_HIDDEN int
intel_create(int fd, struct kms_driver **out)
{
struct kms_driver *kms;
@@ -71,4 +71,14 @@ int kms_bo_map(struct kms_bo *bo, void **out);
int kms_bo_unmap(struct kms_bo *bo);
int kms_bo_destroy(struct kms_bo **bo);
+/* Taken from X11/Xfuncproto.h, keeping only _X_HIDDEN to hide symbols
+ * which shouldn't be exported */
+#if defined(__GNUC__) && (__GNUC__ >= 4) && !defined(__CYGWIN__)
+# define _X_HIDDEN __attribute__((visibility("hidden")))
+#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
+# define _X_HIDDEN __hidden
+#else /* not gcc >= 4 and not Sun Studio >= 8 */
+# define _X_HIDDEN
+#endif /* GNUC >= 4 */
+
#endif
@@ -213,7 +213,7 @@ linux_from_udev(int fd, struct kms_driver **out)
}
#endif
-int
+_X_HIDDEN int
linux_create(int fd, struct kms_driver **out)
{
if (!dumb_create(fd, out))
@@ -196,7 +196,7 @@ nouveau_bo_destroy(struct kms_bo *_bo)
return 0;
}
-int
+_X_HIDDEN int
nouveau_create(int fd, struct kms_driver **out)
{
struct kms_driver *kms;
@@ -218,7 +218,7 @@ radeon_bo_destroy(struct kms_bo *_bo)
return 0;
}
-int
+_X_HIDDEN int
radeon_create(int fd, struct kms_driver **out)
{
struct kms_driver *kms;
@@ -184,7 +184,7 @@ vmwgfx_bo_destroy(struct kms_bo *_bo)
return 0;
}
-int
+_X_HIDDEN int
vmwgfx_create(int fd, struct kms_driver **out)
{
struct kms_driver *kms;