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