diff options
Diffstat (limited to 'Build/source/utils/pmx/pmx-2.7.0/libf2c/patch-01-binary')
-rw-r--r-- | Build/source/utils/pmx/pmx-2.7.0/libf2c/patch-01-binary | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Build/source/utils/pmx/pmx-2.7.0/libf2c/patch-01-binary b/Build/source/utils/pmx/pmx-2.7.0/libf2c/patch-01-binary new file mode 100644 index 00000000000..02856a74455 --- /dev/null +++ b/Build/source/utils/pmx/pmx-2.7.0/libf2c/patch-01-binary @@ -0,0 +1,17 @@ + On Windows fseek() etc. are meaningful only for binary access. + + Mail from Akira, 29 Mar 2012 23:50:53. + +diff -ur pmx-2.6.18.orig/libf2c/open.c pmx-2.6.18/libf2c/open.c +--- pmx-2.6.18.orig/libf2c/open.c 2012-04-09 18:24:12.000000000 +0200 ++++ pmx-2.6.18/libf2c/open.c 2012-05-19 18:46:29.225582726 +0200 +@@ -30,6 +30,9 @@ + #ifdef NON_ANSI_RW_MODES + char *f__r_mode[2] = {"r", "r"}; + char *f__w_mode[4] = {"w", "w", "r+w", "r+w"}; ++#elif defined(WIN32) ++char *f__r_mode[2] = {"rb", "rb"}; ++char *f__w_mode[4] = {"wb", "wb", "rb+", "rb+"}; + #else + char *f__r_mode[2] = {"rb", "r"}; + char *f__w_mode[4] = {"wb", "w", "r+b", "r+"}; |