diff options
author | Martin Tournoij <martin@arp242.net> | 2021-07-24 13:57:29 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-07-24 13:57:29 +0200 |
commit | 1a3e5747b7df7ddda312bbfd18e04fc2122001fb (patch) | |
tree | df3916d14b86db869aa32ce5a032e4d7dc09f0fa /src/if_perl.xs | |
parent | 5a234eb18e6e43408755bb24e813330306c11629 (diff) |
patch 8.2.3208: dynamic library load error does not mention why it failedv8.2.3208
Problem: Dynamic library load error does not mention why it failed.
Solution: Add the error message. (Martin Tournoij, closes #8621)
Diffstat (limited to 'src/if_perl.xs')
-rw-r--r-- | src/if_perl.xs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/if_perl.xs b/src/if_perl.xs index 3b0fead5df..3d683bd9c8 100644 --- a/src/if_perl.xs +++ b/src/if_perl.xs @@ -175,11 +175,13 @@ typedef int perl_key; # define load_dll(n) dlopen((n), RTLD_LAZY|RTLD_GLOBAL) # define symbol_from_dll dlsym # define close_dll dlclose +# define load_dll_error dlerror # else # define PERL_PROC FARPROC # define load_dll vimLoadLib # define symbol_from_dll GetProcAddress # define close_dll FreeLibrary +# define load_dll_error GetWin32Error # endif /* * Wrapper defines |