summaryrefslogtreecommitdiffstats
path: root/wsdl2c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-02-17 20:54:38 +0100
committerGravatar Martin Szulecki2013-02-17 20:54:38 +0100
commit2d465af78e8d8419b31aee732a9e3ae93e036ae9 (patch)
tree1aa6f707f267b9cb2631717c1fc13f23d11147eb /wsdl2c
parenta70586322e0d0d09c99e910d02745098234a1e10 (diff)
downloadcsoap-2d465af78e8d8419b31aee732a9e3ae93e036ae9.tar.gz
csoap-2d465af78e8d8419b31aee732a9e3ae93e036ae9.tar.bz2
Use binary fopen() flag for WIN32 compatibility
Diffstat (limited to 'wsdl2c')
-rwxr-xr-xwsdl2c/codewriter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wsdl2c/codewriter.c b/wsdl2c/codewriter.c
index 7f46b7f..dae0062 100755
--- a/wsdl2c/codewriter.c
+++ b/wsdl2c/codewriter.c
@@ -96,7 +96,7 @@ void codeWriteStubSource(struct CallList *cl, const char* filename)
static
int openSourceFile(const char* filename)
{
- source = fopen(filename, "w");
+ source = fopen(filename, "wb");
if (!source) return 0;
return 1;
}
@@ -110,7 +110,7 @@ void closeSourceFile()
static
int openHeaderFile(const char* filename)
{
- header= fopen(filename, "w");
+ header= fopen(filename, "wb");
if (!header) return 0;
return 1;
}