projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da580db
)
util: use pointer_to_func() to silence warning
author
Brian Paul
<brianp@vmware.com>
Mon, 25 Oct 2010 15:17:40 +0000
(09:17 -0600)
committer
Brian Paul
<brianp@vmware.com>
Mon, 25 Oct 2010 15:17:40 +0000
(09:17 -0600)
src/gallium/auxiliary/util/u_dl.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_dl.c
b/src/gallium/auxiliary/util/u_dl.c
index 220860ebf4bd96c389aaa6b6f74b8dadacad9312..aca435d6cad960f507a9124805587a8ab10ae89e 100644
(file)
--- a/
src/gallium/auxiliary/util/u_dl.c
+++ b/
src/gallium/auxiliary/util/u_dl.c
@@
-38,6
+38,7
@@
#endif
#include "u_dl.h"
+#include "u_pointer.h"
struct util_dl_library *
@@
-58,7
+59,7
@@
util_dl_get_proc_address(struct util_dl_library *library,
const char *procname)
{
#if defined(PIPE_OS_UNIX)
- return (util_dl_proc)
dlsym((void *)library, procname
);
+ return (util_dl_proc)
pointer_to_func(dlsym((void *)library, procname)
);
#elif defined(PIPE_OS_WINDOWS)
return (util_dl_proc)GetProcAddress((HMODULE)library, procname);
#else