[Groonga-commit] groonga/groonga [master] Cast return value of GetProcAddress() to void pointer.

Back to archive index

null+****@clear***** null+****@clear*****
2010年 10月 13日 (水) 15:39:31 JST


Daijiro MORI	2010-10-13 06:39:31 +0000 (Wed, 13 Oct 2010)

  New Revision: e530bcf7c92546e2bd04d77c39eb7813ccf71ce7

  Log:
    Cast return value of GetProcAddress() to void pointer.

  Modified files:
    lib/module.c

  Modified: lib/module.c (+1 -1)
===================================================================
--- lib/module.c    2010-10-11 19:44:24 +0000 (805a118)
+++ lib/module.c    2010-10-13 06:39:31 +0000 (fa15962)
@@ -31,7 +31,7 @@ static grn_hash *grn_modules = NULL;
 #  define grn_dl_open_error_label  "LoadLibrary"
 #  define grn_dl_close(dl)         (FreeLibrary(dl) != 0)
 #  define grn_dl_close_error_label "FreeLibrary"
-#  define grn_dl_sym(dl, symbol)   GetProcAddress(dl, symbol)
+#  define grn_dl_sym(dl, symbol)   ((void *)GetProcAddress(dl, symbol))
 #  define grn_dl_sym_error_label   "GetProcAddress"
 #  define grn_dl_clear_error
 #else




Groonga-commit メーリングリストの案内
Back to archive index