>From 4ad40c644b7b6688e1b9e0f7ebf27e2c6a38b0d4 Mon Sep 17 00:00:00 2001
From: Tamas TEVESZ <[email protected]>
Date: Thu, 25 Mar 2010 03:25:42 +0100
Subject: [PATCH] Remove O_BINARY hacks for cygwin

According to http://www.cygwin.com/cygwin-ug-net/using-textbinary.html, it is
"defined in fcntl.h", so no funky business needed anymore.
---
 WINGs/wcolorpanel.c |    5 -----
 wrlib/load.c        |    5 -----
 2 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/WINGs/wcolorpanel.c b/WINGs/wcolorpanel.c
index a9c4def..39939af 100644
--- a/WINGs/wcolorpanel.c
+++ b/WINGs/wcolorpanel.c
@@ -270,11 +270,6 @@ enum {
 #define M_PI 3.14159265358979323846
 #endif
 
-/* Silly hack for Windows systems with cygwin */
-#ifndef O_BINARY
-# define O_BINARY 0
-#endif
-
 static int fetchFile(char *toPath, char *imageSrcFile, char 
*imageDestFileName);
 char *generateNewFilename(char *curName);
 void convertCPColor(CPColor * color);
diff --git a/wrlib/load.c b/wrlib/load.c
index bfd46b9..c0992f4 100644
--- a/wrlib/load.c
+++ b/wrlib/load.c
@@ -37,11 +37,6 @@
 
 #include "wraster.h"
 
-/* Silly hack for Windows systems with cygwin */
-#ifndef O_BINARY
-# define O_BINARY 0
-#endif
-
 typedef struct RCachedImage {
        RImage *image;
        char *file;
-- 
1.7.0


-- 
[-]

mkdir /nonexistent
From 4ad40c644b7b6688e1b9e0f7ebf27e2c6a38b0d4 Mon Sep 17 00:00:00 2001
From: Tamas TEVESZ <[email protected]>
Date: Thu, 25 Mar 2010 03:25:42 +0100
Subject: [PATCH] Remove O_BINARY hacks for cygwin

According to http://www.cygwin.com/cygwin-ug-net/using-textbinary.html, it is
"defined in fcntl.h", so no funky business needed anymore.
---
 WINGs/wcolorpanel.c |    5 -----
 wrlib/load.c        |    5 -----
 2 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/WINGs/wcolorpanel.c b/WINGs/wcolorpanel.c
index a9c4def..39939af 100644
--- a/WINGs/wcolorpanel.c
+++ b/WINGs/wcolorpanel.c
@@ -270,11 +270,6 @@ enum {
 #define M_PI 3.14159265358979323846
 #endif
 
-/* Silly hack for Windows systems with cygwin */
-#ifndef O_BINARY
-# define O_BINARY 0
-#endif
-
 static int fetchFile(char *toPath, char *imageSrcFile, char *imageDestFileName);
 char *generateNewFilename(char *curName);
 void convertCPColor(CPColor * color);
diff --git a/wrlib/load.c b/wrlib/load.c
index bfd46b9..c0992f4 100644
--- a/wrlib/load.c
+++ b/wrlib/load.c
@@ -37,11 +37,6 @@
 
 #include "wraster.h"
 
-/* Silly hack for Windows systems with cygwin */
-#ifndef O_BINARY
-# define O_BINARY 0
-#endif
-
 typedef struct RCachedImage {
 	RImage *image;
 	char *file;
-- 
1.7.0

Reply via email to