summaryrefslogtreecommitdiff
path: root/src/gui_w32.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-11-12 16:10:48 +0100
committerBram Moolenaar <Bram@vim.org>2014-11-12 16:10:48 +0100
commitb8e0bdbda377d0a3c3e24bea62503b9f95f8249a (patch)
tree9e0bb83cb9ca8cd34e3a878dfada15eed5d118bd /src/gui_w32.c
parent3e9a1614966926a6067c977921d5aa270eba5da7 (diff)
downloadvim-b8e0bdbda377d0a3c3e24bea62503b9f95f8249a.zip
updated for version 7.4.512
Problem: Cannot generate prototypes for Win32 files and VMS. Solution: Add typedefs and #ifdef
Diffstat (limited to 'src/gui_w32.c')
-rw-r--r--src/gui_w32.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c
index 374ed4725..b81a74df9 100644
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -29,12 +29,14 @@
# include "gui_dwrite.h"
#endif
-#if defined(FEAT_DIRECTX) || defined(PROTO)
+#if defined(FEAT_DIRECTX)
static DWriteContext *s_dwc = NULL;
static int s_directx_enabled = 0;
static int s_directx_load_attempted = 0;
# define IS_ENABLE_DIRECTX() (s_directx_enabled && s_dwc != NULL)
+#endif
+#if defined(FEAT_DIRECTX) || defined(PROTO)
int
directx_enabled(void)
{