Browse Source

util: use pointer_to_func() to silence warning

tags/snb-magic
Brian Paul 15 years ago
parent
commit
e1e7843d03
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/gallium/auxiliary/util/u_dl.c

+ 2
- 1
src/gallium/auxiliary/util/u_dl.c View File

@@ -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

Loading…
Cancel
Save