Skip to content

Commit

Permalink
Fix MSVC build by defining a MSVC-friendly chdir
Browse files Browse the repository at this point in the history
  • Loading branch information
alberthdev committed May 20, 2016
1 parent d1052dd commit 708fd2d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion gui/qt/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@
#include <QtGui/QPixmap>

#include <fstream>
#include <unistd.h>

#ifdef _MSC_VER
#include <direct.h>
#define chdir _chdir
#else
#include <unistd.h>
#endif

#include "mainwindow.h"
#include "ui_mainwindow.h"
Expand Down

0 comments on commit 708fd2d

Please sign in to comment.