Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Surround definition of _fmode in MSVC ifdef to allow compilation in m…
…ingw

git-svn-id: http://svn.osgeo.org/qgis/trunk@7233 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
godofredo committed Sep 28, 2007
1 parent 4c0cc39 commit 864fef8
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;
#endif
#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 864fef8

Please sign in to comment.