diff options
author | boris_mikhaylov <boris_mikhaylov@bc0edfbe-c936-4687-b64d-f70bc3985e72> | 2009-03-06 17:35:51 +0300 |
---|---|---|
committer | boris_mikhaylov <boris_mikhaylov@bc0edfbe-c936-4687-b64d-f70bc3985e72> | 2009-03-06 17:35:51 +0300 |
commit | a6ac30a9ca2e1d15ed0515c6f9784bdaf0957976 (patch) | |
tree | 97a9766fcbb46f9125a3bf51d191017a139bcc2b | |
parent | a5e94fc5a76bab7ab476e4af886a750745bfcbc7 (diff) |
Added more systems compatability
git-svn-id: svn://svn.code.sf.net/p/bs2b/code/trunk/libbs2b@57 bc0edfbe-c936-4687-b64d-f70bc3985e72
-rw-r--r-- | src/bs2bstream.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bs2bstream.c b/src/bs2bstream.c index cf73625..372b3da 100644 --- a/src/bs2bstream.c +++ b/src/bs2bstream.c @@ -23,9 +23,9 @@ #include <stdio.h> #include <string.h> - -#if defined(WIN32) || defined(__WIN32) || defined(__WIN32__) #include <fcntl.h> + +#if defined(_O_BINARY) || defined(_O_RAW) #include <io.h> #endif @@ -106,7 +106,7 @@ int main( int argc, char *argv[] ) bs2b_set_srate( bs2bdp, srate ); bs2b_set_level( bs2bdp, level ); -#if defined(WIN32) || defined(__WIN32) || defined(__WIN32__) +#if defined(_O_BINARY) || defined(_O_RAW) _setmode( _fileno( stdin ), _O_BINARY ); _setmode( _fileno( stdout ), _O_BINARY ); #endif |