comparison src/if_perl.xs @ 25342:c4298ed56ffa v8.2.3208

patch 8.2.3208: dynamic library load error does not mention why it failed Commit: https://github.com/vim/vim/commit/1a3e5747b7df7ddda312bbfd18e04fc2122001fb Author: Martin Tournoij <martin@arp242.net> Date: Sat Jul 24 13:57:29 2021 +0200 patch 8.2.3208: dynamic library load error does not mention why it failed Problem: Dynamic library load error does not mention why it failed. Solution: Add the error message. (Martin Tournoij, closes https://github.com/vim/vim/issues/8621)
author Bram Moolenaar <Bram@vim.org>
date Sat, 24 Jul 2021 14:00:05 +0200
parents 5fbb271b35e0
children 06a137af96f8
comparison
equal deleted inserted replaced
25341:040fe01278e8 25342:c4298ed56ffa
173 # define HANDLE void* 173 # define HANDLE void*
174 # define PERL_PROC void* 174 # define PERL_PROC void*
175 # define load_dll(n) dlopen((n), RTLD_LAZY|RTLD_GLOBAL) 175 # define load_dll(n) dlopen((n), RTLD_LAZY|RTLD_GLOBAL)
176 # define symbol_from_dll dlsym 176 # define symbol_from_dll dlsym
177 # define close_dll dlclose 177 # define close_dll dlclose
178 # define load_dll_error dlerror
178 # else 179 # else
179 # define PERL_PROC FARPROC 180 # define PERL_PROC FARPROC
180 # define load_dll vimLoadLib 181 # define load_dll vimLoadLib
181 # define symbol_from_dll GetProcAddress 182 # define symbol_from_dll GetProcAddress
182 # define close_dll FreeLibrary 183 # define close_dll FreeLibrary
184 # define load_dll_error GetWin32Error
183 # endif 185 # endif
184 /* 186 /*
185 * Wrapper defines 187 * Wrapper defines
186 */ 188 */
187 # define perl_alloc dll_perl_alloc 189 # define perl_alloc dll_perl_alloc