mirror of
https://github.com/vim/vim.git
synced 2025-11-15 23:14:06 -05:00
patch 9.1.1840: Generating prototype files does not work on all platforms
Problem: Generating prototype files does not work on all platforms
Solution: Rework prototypes generation using python instead of cproto,
enable it in CI to test it for each PR (Hirohito Higashi).
closes: #18045
Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
ce5f9f45af
commit
e7c765fe59
@@ -11,10 +11,7 @@
|
||||
*/
|
||||
|
||||
#include "os_dos.h" // common MS-DOS and Win32 stuff
|
||||
// cproto fails on missing include files
|
||||
#ifndef PROTO
|
||||
# include <direct.h> // for _mkdir()
|
||||
#endif
|
||||
#include <direct.h> // for _mkdir()
|
||||
|
||||
#define BINARY_FILE_IO
|
||||
#define USE_EXE_NAME // use argv[0] for $VIM
|
||||
@@ -84,19 +81,18 @@
|
||||
#ifndef COBJMACROS
|
||||
# define COBJMACROS // For OLE: Enable "friendlier" access to objects
|
||||
#endif
|
||||
#ifndef PROTO
|
||||
|
||||
// Must include winsock2.h before windows.h since it conflicts with winsock.h
|
||||
// (included in windows.h).
|
||||
# include <winsock2.h>
|
||||
# include <ws2tcpip.h>
|
||||
# include <windows.h>
|
||||
#include <winsock2.h>
|
||||
#include <ws2tcpip.h>
|
||||
#include <windows.h>
|
||||
|
||||
// Weird: rpcndr.h defines "small" to "char", which causes trouble
|
||||
#undef small
|
||||
|
||||
# ifndef SM_CXPADDEDBORDER
|
||||
# define SM_CXPADDEDBORDER 92
|
||||
# endif
|
||||
#ifndef SM_CXPADDEDBORDER
|
||||
# define SM_CXPADDEDBORDER 92
|
||||
#endif
|
||||
|
||||
typedef void (*sighandler_T)(int, int);
|
||||
|
||||
Reference in New Issue
Block a user