Mercurial > vim
comparison src/memfile.c @ 15868:7fad90423bd2 v8.1.0941
patch 8.1.0941: macros for MS-Windows are inconsistent
commit https://github.com/vim/vim/commit/4f97475d326c2773a78561fb874e4f23c25cbcd9
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 17 17:44:42 2019 +0100
patch 8.1.0941: macros for MS-Windows are inconsistent
Problem: Macros for MS-Windows are inconsistent, using "32", "3264 and
others.
Solution: Use MSWIN for all MS-Windows builds. Use FEAT_GUI_MSWIN for the
GUI build. (Hirohito Higashi, closes #3932)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 17 Feb 2019 17:45:08 +0100 |
parents | 40336d427dd2 |
children | ef00b6bc186b |
comparison
equal
deleted
inserted
replaced
15867:4a3823e692d3 | 15868:7fad90423bd2 |
---|---|
619 { | 619 { |
620 if (vim_fsync(mfp->mf_fd)) | 620 if (vim_fsync(mfp->mf_fd)) |
621 status = FAIL; | 621 status = FAIL; |
622 } | 622 } |
623 #endif | 623 #endif |
624 #ifdef WIN32 | 624 #ifdef MSWIN |
625 if (_commit(mfp->mf_fd)) | 625 if (_commit(mfp->mf_fd)) |
626 status = FAIL; | 626 status = FAIL; |
627 #endif | 627 #endif |
628 #ifdef AMIGA | 628 #ifdef AMIGA |
629 # if defined(__AROS__) || defined(__amigaos4__) | 629 # if defined(__AROS__) || defined(__amigaos4__) |
1263 { | 1263 { |
1264 /* | 1264 /* |
1265 * try to open the file | 1265 * try to open the file |
1266 */ | 1266 */ |
1267 flags |= O_EXTRA | O_NOFOLLOW; | 1267 flags |= O_EXTRA | O_NOFOLLOW; |
1268 #ifdef WIN32 | 1268 #ifdef MSWIN |
1269 /* Prevent handle inheritance that cause problems with Cscope | 1269 /* Prevent handle inheritance that cause problems with Cscope |
1270 * (swap file may not be deleted if cscope connection was open after | 1270 * (swap file may not be deleted if cscope connection was open after |
1271 * the file) */ | 1271 * the file) */ |
1272 flags |= O_NOINHERIT; | 1272 flags |= O_NOINHERIT; |
1273 #endif | 1273 #endif |