astepano / rpms / vim

Forked from rpms/vim 6 years ago
Clone
2102f06
To: vim-dev@vim.org
2102f06
Subject: Patch 7.2.209
2102f06
Fcc: outbox
2102f06
From: Bram Moolenaar <Bram@moolenaar.net>
2102f06
Mime-Version: 1.0
2102f06
Content-Type: text/plain; charset=UTF-8
2102f06
Content-Transfer-Encoding: 8bit
2102f06
------------
2102f06
2102f06
Patch 7.2.209
2102f06
Problem:    For xxd setmode() is undefined on Cygwin.
2102f06
Solution:   Include io.h. (Dominique Pelle)
2102f06
Files:	    src/xxd/xxd.c
2102f06
2102f06
2102f06
*** ../vim-7.2.208/src/xxd/xxd.c	2007-12-03 21:32:21.000000000 +0100
2102f06
--- src/xxd/xxd.c	2009-06-16 18:03:14.000000000 +0200
2102f06
***************
2102f06
*** 64,69 ****
2102f06
--- 64,72 ----
2102f06
  # define _CRT_SECURE_NO_DEPRECATE
2102f06
  # define _CRT_NONSTDC_NO_DEPRECATE
2102f06
  #endif
2102f06
+ #if !defined(CYGWIN) && (defined(CYGWIN32) || defined(__CYGWIN__) || defined(__CYGWIN32__))
2102f06
+ # define CYGWIN
2102f06
+ #endif
2102f06
  
2102f06
  #include <stdio.h>
2102f06
  #ifdef VAXC
2102f06
***************
2102f06
*** 77,83 ****
2102f06
  #if !defined(OS2) && defined(__EMX__)
2102f06
  # define OS2
2102f06
  #endif
2102f06
! #if defined(MSDOS) || defined(WIN32) || defined(OS2) || defined(__BORLANDC__)
2102f06
  # include <io.h>	/* for setmode() */
2102f06
  #else
2102f06
  # ifdef UNIX
2102f06
--- 80,87 ----
2102f06
  #if !defined(OS2) && defined(__EMX__)
2102f06
  # define OS2
2102f06
  #endif
2102f06
! #if defined(MSDOS) || defined(WIN32) || defined(OS2) || defined(__BORLANDC__) \
2102f06
!   || defined(CYGWIN)
2102f06
  # include <io.h>	/* for setmode() */
2102f06
  #else
2102f06
  # ifdef UNIX
2102f06
***************
2102f06
*** 150,158 ****
2102f06
  # endif
2102f06
  #endif
2102f06
  
2102f06
- #if !defined(CYGWIN) && (defined(CYGWIN32) || defined(__CYGWIN__) || defined(__CYGWIN32__))
2102f06
- # define CYGWIN
2102f06
- #endif
2102f06
  #if defined(MSDOS) || defined(WIN32) || defined(OS2)
2102f06
  # define BIN_READ(yes)  ((yes) ? "rb" : "rt")
2102f06
  # define BIN_WRITE(yes) ((yes) ? "wb" : "wt")
2102f06
--- 154,159 ----
2102f06
*** ../vim-7.2.208/src/version.c	2009-06-16 17:50:56.000000000 +0200
2102f06
--- src/version.c	2009-06-16 18:16:08.000000000 +0200
2102f06
***************
2102f06
*** 678,679 ****
2102f06
--- 678,681 ----
2102f06
  {   /* Add new patch number below this line */
2102f06
+ /**/
2102f06
+     209,
2102f06
  /**/
2102f06
2102f06
-- 
2102f06
"So this is it," said Arthur, "we are going to die."
2102f06
"Yes," said Ford, "except...no!  Wait a minute!"  He suddenly lunged across
2102f06
the chamber at something behind Arthur's line of vision.  "What's this
2102f06
switch?" he cried.
2102f06
"What?   Where?" cried Arthur, twisting around.
2102f06
"No, I was only fooling," said Ford, "we are going to die after all."
2102f06
		-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
2102f06
2102f06
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
2102f06
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
2102f06
\\\        download, build and distribute -- http://www.A-A-P.org        ///
2102f06
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///