Skip to content

Commit 6afa2b7

Browse files
committed
updated for version 7.4.512
Problem: Cannot generate prototypes for Win32 files and VMS. Solution: Add typedefs and #ifdef
1 parent 44c6afd commit 6afa2b7

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

src/gui_w32.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,14 @@
2929
# include "gui_dwrite.h"
3030
#endif
3131

32-
#if defined(FEAT_DIRECTX) || defined(PROTO)
32+
#if defined(FEAT_DIRECTX)
3333
static DWriteContext *s_dwc = NULL;
3434
static int s_directx_enabled = 0;
3535
static int s_directx_load_attempted = 0;
3636
# define IS_ENABLE_DIRECTX() (s_directx_enabled && s_dwc != NULL)
37+
#endif
3738

39+
#if defined(FEAT_DIRECTX) || defined(PROTO)
3840
int
3941
directx_enabled(void)
4042
{

src/os_vms.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include "vim.h"
1313

1414
/* define _generic_64 for use in time functions */
15-
#ifndef VAX
15+
#if !defined(VAX) && !defined(PROTO)
1616
# include <gen64def.h>
1717
#else
1818
/* based on Alpha's gen64def.h; the file is absent on VAX */

src/os_win32.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ typedef int BY_HANDLE_FILE_INFORMATION;
135135
typedef int SE_OBJECT_TYPE;
136136
typedef int PSNSECINFO;
137137
typedef int PSNSECINFOW;
138+
typedef int STARTUPINFO;
139+
typedef int PROCESS_INFORMATION;
138140
#endif
139141

140142
#ifndef FEAT_GUI_W32

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
512,
744746
/**/
745747
511,
746748
/**/

0 commit comments

Comments
 (0)