[Mesa-dev] [PATCH] gbm: export gbm_device_is_format_supported

Marek Chalupa mchqwerty at gmail.com
Thu Feb 27 00:23:21 PST 2014


Probably depending on compiler settings, the definition can be hidden,
so undefined reference error can be encountred during linking

https://bugs.freedesktop.org/show_bug.cgi?id=75528
---
 src/gbm/main/gbm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gbm/main/gbm.c b/src/gbm/main/gbm.c
index 7a4e406..b057386 100644
--- a/src/gbm/main/gbm.c
+++ b/src/gbm/main/gbm.c
@@ -81,7 +81,7 @@ gbm_device_get_backend_name(struct gbm_device *gbm)
  *
  * \sa enum gbm_bo_format for the list of formats
  */
-int
+GBM_EXPORT int
 gbm_device_is_format_supported(struct gbm_device *gbm,
                                uint32_t format, uint32_t usage)
 {
-- 
1.8.4.2



More information about the mesa-dev mailing list