Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/alexmarsev/libbs2b.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorboris_mikhaylov <boris_mikhaylov@bc0edfbe-c936-4687-b64d-f70bc3985e72>2009-03-06 17:35:51 +0300
committerboris_mikhaylov <boris_mikhaylov@bc0edfbe-c936-4687-b64d-f70bc3985e72>2009-03-06 17:35:51 +0300
commita6ac30a9ca2e1d15ed0515c6f9784bdaf0957976 (patch)
tree97a9766fcbb46f9125a3bf51d191017a139bcc2b
parenta5e94fc5a76bab7ab476e4af886a750745bfcbc7 (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.c6
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