aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/vim.h
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-08-12 02:42:13 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-08-12 02:42:13 +0200
commitad4eb18e43d56d7ec93770af674418451daae694 (patch)
tree4779887d56e4640f60b5c4d796def4ebb3e4af6e /src/nvim/vim.h
parent48dc6344d665a7537fb000ec64ab95a37faa07f3 (diff)
parent2fbeea8326e2e3724482d4131f10c1b1990a1687 (diff)
downloadrneovim-ad4eb18e43d56d7ec93770af674418451daae694.tar.gz
rneovim-ad4eb18e43d56d7ec93770af674418451daae694.tar.bz2
rneovim-ad4eb18e43d56d7ec93770af674418451daae694.zip
Merge #10098 'win: fix msg_puts_printf()'
Diffstat (limited to 'src/nvim/vim.h')
-rw-r--r--src/nvim/vim.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/vim.h b/src/nvim/vim.h
index 3e0a5907be..60737014b3 100644
--- a/src/nvim/vim.h
+++ b/src/nvim/vim.h
@@ -287,9 +287,10 @@ enum { FOLD_TEXT_LEN = 51 }; //!< buffer size for get_foldtext()
// functions of these names. The declarations would break if the defines had
// been seen at that stage. But it must be before globals.h, where error_ga
// is declared.
-#define mch_errmsg(str) fprintf(stderr, "%s", (str))
-#define display_errors() fflush(stderr)
-#define mch_msg(str) printf("%s", (str))
+#ifndef WIN32
+# define mch_errmsg(str) fprintf(stderr, "%s", (str))
+# define mch_msg(str) printf("%s", (str))
+#endif
#include "nvim/globals.h" // global variables and messages
#include "nvim/buffer_defs.h" // buffer and windows