Skip to content
Browse files
Surround definition of _fmode in MSVC ifdef to allow compilation in m…

git-svn-id: c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
godofredo committed Sep 28, 2007
1 parent 4c0cc39 commit 864fef8f402bcd7780087313479bd1d65014c0bd
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/app/main.cpp
@@ -42,8 +42,10 @@
#ifdef WIN32
// Open files in binary mode
#include <fcntl.h> /* _O_BINARY */
#ifdef MSVC
#undef _fmode
int _fmode = _O_BINARY;
int _fmode = _O_BINARY;
#ifndef _MSC_VER
// Only do this if we are not building on windows with msvc.
// Recommended method for doing this with msvc is with a call to _set_fmode

0 comments on commit 864fef8

Please sign in to comment.