comparison src/undo.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 6f1c7e9a6393
children 4411c38f3d16
comparison
equal deleted inserted replaced
15867:4a3823e692d3 15868:7fad90423bd2
643 643
644 /* find line number for ue_bot for previous u_save() */ 644 /* find line number for ue_bot for previous u_save() */
645 u_getbot(); 645 u_getbot();
646 } 646 }
647 647
648 #if !defined(UNIX) && !defined(WIN32) 648 #if !defined(UNIX) && !defined(MSWIN)
649 /* 649 /*
650 * With Amiga we can't handle big undo's, because 650 * With Amiga we can't handle big undo's, because
651 * then u_alloc_line would have to allocate a block larger than 32K 651 * then u_alloc_line would have to allocate a block larger than 32K
652 */ 652 */
653 if (size >= 8000) 653 if (size >= 8000)
1738 write_error: 1738 write_error:
1739 fclose(fp); 1739 fclose(fp);
1740 if (!write_ok) 1740 if (!write_ok)
1741 semsg(_("E829: write error in undo file: %s"), file_name); 1741 semsg(_("E829: write error in undo file: %s"), file_name);
1742 1742
1743 #if defined(WIN3264) 1743 #if defined(MSWIN)
1744 /* Copy file attributes; for systems where this can only be done after 1744 /* Copy file attributes; for systems where this can only be done after
1745 * closing the file. */ 1745 * closing the file. */
1746 if (buf->b_ffname != NULL) 1746 if (buf->b_ffname != NULL)
1747 (void)mch_copy_file_attribute(buf->b_ffname, file_name); 1747 (void)mch_copy_file_attribute(buf->b_ffname, file_name);
1748 #endif 1748 #endif