summaryrefslogtreecommitdiffstats
path: root/src/proto/os_win32.pro
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-08-02 22:07:12 +0200
committerBram Moolenaar <Bram@vim.org>2017-08-02 22:07:12 +0200
commitb6843a007da9c06bd8f9491cc12e5e0afd858f33 (patch)
tree2199b430eb6cc5d9800ea9e82a43c9d527d0d148 /src/proto/os_win32.pro
parentfae428354213b54626ff9e29faa5fd86161da942 (diff)
patch 8.0.0840: MS-Windows: fopen() and open() prototypes are wrongv8.0.0840
Problem: MS-Windows: fopen() and open() prototypes do not match the ones in the system header file. Can't build without FEAT_MBYTE. Solution: Add "const". Move macro to after including protoo.h.
Diffstat (limited to 'src/proto/os_win32.pro')
-rw-r--r--src/proto/os_win32.pro6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/proto/os_win32.pro b/src/proto/os_win32.pro
index 6c5dc4fc01..754df4f975 100644
--- a/src/proto/os_win32.pro
+++ b/src/proto/os_win32.pro
@@ -4,6 +4,8 @@ HINSTANCE find_imported_module_by_funcname(HINSTANCE hInst, const char *funcname
void *get_dll_import_func(HINSTANCE hInst, const char *funcname);
int dyn_libintl_init(void);
void dyn_libintl_end(void);
+int null_libintl_putenv(const char *envstring);
+int null_libintl_wputenv(const wchar_t *envstring);
void PlatformId(void);
void mch_setmouse(int on);
void mch_update_cursor(void);
@@ -56,8 +58,8 @@ int mch_wrename(WCHAR *wold, WCHAR *wnew);
int mch_rename(const char *pszOldFile, const char *pszNewFile);
char *default_shell(void);
int mch_access(char *n, int p);
-int mch_open(char *name, int flags, int mode);
-FILE *mch_fopen(char *name, char *mode);
+int mch_open(const char *name, int flags, int mode);
+FILE *mch_fopen(const char *name, const char *mode);
int mch_copy_file_attribute(char_u *from, char_u *to);
int myresetstkoflw(void);
int get_cmd_argsW(char ***argvp);