even better lets have rb for CYGWIN too ... one never knows it is windows after all.
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sat, 30 Apr 2005 09:41:14 +0000 (09:41 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sat, 30 Apr 2005 09:41:14 +0000 (09:41 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@453 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_open.c

index de8c9d0..98a52e0 100644 (file)
@@ -78,13 +78,13 @@ rrd_open(const char *file_name, FILE **in_file, rrd_t *rrd, int rdwr)
     
     rrd_init(rrd);
     if (rdwr == RRD_READONLY) {
-#if defined(WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__)
+#if defined(WIN32)
        mode = "rb";
 #else
        mode = "r";
 #endif
     } else {
-#if defined(WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__)
+#if defined(WIN32)
        mode = "rb+";
 #else
        mode = "r+";