diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-12-31 19:07:19 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-12-31 19:07:19 +0100 |
commit | e7fedb6ebe72d9a475aa65109b77d5ed4667067a (patch) | |
tree | 19327fc9d1ca538d9c5c81c7284adf492e790e6d /src/memline.c | |
parent | e3303cb0817e826e3c25d5dc4ac10b569d0841e1 (diff) | |
download | vim-git-e7fedb6ebe72d9a475aa65109b77d5ed4667067a.tar.gz |
patch 7.4.1008v7.4.1008
Problem: The OS/2 code pollutes the source while nobody uses it these days.
Solution: Drop the support for OS/2.
Diffstat (limited to 'src/memline.c')
-rw-r--r-- | src/memline.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/memline.c b/src/memline.c index a1c07a967..cd6d151e1 100644 --- a/src/memline.c +++ b/src/memline.c @@ -4211,8 +4211,7 @@ findswapname(buf, dirp, old_fname) #endif char_u *buf_fname = buf->b_fname; -#if !defined(SHORT_FNAME) \ - && ((!defined(UNIX) && !defined(OS2)) || defined(ARCHIE)) +#if !defined(SHORT_FNAME) && (!defined(UNIX) || defined(ARCHIE)) # define CREATE_DUMMY_FILE FILE *dummyfd = NULL; @@ -4272,7 +4271,7 @@ findswapname(buf, dirp, old_fname) fname = NULL; break; } -#if (defined(UNIX) || defined(OS2)) && !defined(ARCHIE) && !defined(SHORT_FNAME) +#if defined(UNIX) && !defined(ARCHIE) && !defined(SHORT_FNAME) /* * Some systems have a MS-DOS compatible filesystem that use 8.3 character * file names. If this is the first try and the swap file name does not fit in @@ -4323,10 +4322,6 @@ findswapname(buf, dirp, old_fname) { f1 = mch_open_rw((char *)fname, O_RDWR|O_CREAT|O_EXCL|O_EXTRA); -#if defined(OS2) - if (f1 < 0 && errno == ENOENT) - same = TRUE; -#endif created1 = TRUE; } if (f1 >= 0) |