summaryrefslogtreecommitdiff
path: root/library/pch.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 16:59:06 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 16:59:06 +0200
commit4046be06720932a57a0f49416b0144b2858824d0 (patch)
tree678c37cab05960f48923a23bb46d9e01be89d35a /library/pch.h
parent1.19 (diff)
downloadFreeFileSync-4046be06720932a57a0f49416b0144b2858824d0.tar.gz
FreeFileSync-4046be06720932a57a0f49416b0144b2858824d0.tar.bz2
FreeFileSync-4046be06720932a57a0f49416b0144b2858824d0.zip
2.0
Diffstat (limited to 'library/pch.h')
-rw-r--r--library/pch.h23
1 files changed, 10 insertions, 13 deletions
diff --git a/library/pch.h b/library/pch.h
index 50f9fda3..b561d448 100644
--- a/library/pch.h
+++ b/library/pch.h
@@ -1,8 +1,10 @@
#ifndef FFS_PRECOMPILED_HEADER
#define FFS_PRECOMPILED_HEADER
-DO NOT USE THIS FILE:
-FOR SOME REASON IT CORRUPTS COMPILATION!!!
+//pay attention when using this file: might cause issues!
+#ifndef __WXDEBUG__
+do NOT use in release build!
+#endif
//#####################################################
// basic wxWidgets headers
@@ -12,22 +14,17 @@ FOR SOME REASON IT CORRUPTS COMPILATION!!!
#include <wx/wxprec.h>
-#ifndef WX_PRECOMP
-#include <wx/wx.h>
-#endif
-
//#####################################################
// #include other rarely changing headers here
//STL headers
-#include <vector>
-#include <set>
#include <string>
-#include <stack>
#include <algorithm>
+#include <vector>
+#include <queue>
+#include <stack>
+#include <set>
#include <map>
-
-//C headers
#include <fstream>
#ifdef FFS_LINUX
@@ -36,7 +33,6 @@ FOR SOME REASON IT CORRUPTS COMPILATION!!!
//other wxWidgets headers
#include <wx/grid.h>
-#include <sys/stat.h>
#include <wx/animate.h>
#include <wx/app.h>
#include <wx/arrstr.h>
@@ -90,9 +86,10 @@ FOR SOME REASON IT CORRUPTS COMPILATION!!!
//other
#include "tinyxml/tinyxml.h"
+#include <sys/stat.h>
#ifdef FFS_WIN
-#include <windows.h>
+#include <wx/msw/wrapwin.h> //includes "windows.h"
#endif //FFS_WIN
//#####################################################
bgstack15