Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
set _fmode to binary on Win
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@4811 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed Feb 7, 2006
1 parent 56038d7 commit 1bc98fa
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/gui/main.cpp
Expand Up @@ -33,15 +33,20 @@
#include <QTextCodec>
#include <QTranslator>


#include <iostream>
#include <cstdio>
#ifndef WIN32
#include <getopt.h>
#endif

#include <stdio.h>
#include <stdlib.h>

#ifdef WIN32
// Open files in binary mode
#include <fcntl.h> /* _O_BINARY */
#undef _fmode
int _fmode = _O_BINARY;
#else
#include <getopt.h>
#endif

#ifdef Q_OS_MACX
#include <ApplicationServices/ApplicationServices.h>
#endif
Expand Down

0 comments on commit 1bc98fa

Please sign in to comment.