Skip to content


Browse files Browse the repository at this point in the history
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 ed192ea commit 4c7b8a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/main.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 4c7b8a4

Please sign in to comment.