mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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 #8621)
This commit is contained in:
committed by
Bram Moolenaar
parent
5a234eb18e
commit
1a3e5747b7
@@ -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
|
||||
|
Reference in New Issue
Block a user