mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 9.0.2013: confusing ifdefs in if_<lang>.c
Problem: confusing ifdefs in if_<lang>.c Solution: refactor ifndefs to #ifdefs if_x: Avoid using #ifndef - #else - #endif Using #ifndef - #else - #endif is sometimes confusing. Use #ifdef - #else - #endif instead. closes: #13310 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Ken Takata <kentkt@csc.jp>
This commit is contained in:
committed by
Christian Brabandt
parent
a634b92b96
commit
c97b3febc8
@@ -174,7 +174,13 @@
|
||||
#include "version.h"
|
||||
|
||||
#ifdef DYNAMIC_RUBY
|
||||
# if !defined(MSWIN) // must come after including vim.h, where it is defined
|
||||
# ifdef MSWIN // must come after including vim.h, where it is defined
|
||||
# define RUBY_PROC FARPROC
|
||||
# define load_dll vimLoadLib
|
||||
# define symbol_from_dll GetProcAddress
|
||||
# define close_dll FreeLibrary
|
||||
# define load_dll_error GetWin32Error
|
||||
# else
|
||||
# include <dlfcn.h>
|
||||
# define HINSTANCE void*
|
||||
# define RUBY_PROC void*
|
||||
@@ -182,12 +188,6 @@
|
||||
# define symbol_from_dll dlsym
|
||||
# define close_dll dlclose
|
||||
# define load_dll_error dlerror
|
||||
# else
|
||||
# define RUBY_PROC FARPROC
|
||||
# define load_dll vimLoadLib
|
||||
# define symbol_from_dll GetProcAddress
|
||||
# define close_dll FreeLibrary
|
||||
# define load_dll_error GetWin32Error
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user