summaryrefslogtreecommitdiff
path: root/src/dosinst.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dosinst.c')
-rw-r--r--src/dosinst.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/dosinst.c b/src/dosinst.c
index 6a12e3dc8..ae5517da9 100644
--- a/src/dosinst.c
+++ b/src/dosinst.c
@@ -23,7 +23,14 @@
#define GVIMEXT32_PATH "GvimExt32\\gvimext.dll"
/* Macro to do an error check I was typing over and over */
-#define CHECK_REG_ERROR(code) if (code != ERROR_SUCCESS) { printf("%ld error number: %ld\n", (long)__LINE__, (long)code); return 1; }
+#define CHECK_REG_ERROR(code) \
+ do { \
+ if (code != ERROR_SUCCESS) \
+ { \
+ printf("%ld error number: %ld\n", (long)__LINE__, (long)code); \
+ return 1; \
+ } \
+ } while (0)
int has_vim = 0; /* installable vim.exe exists */
int has_gvim = 0; /* installable gvim.exe exists */