summaryrefslogtreecommitdiff
path: root/library/pch.h
diff options
context:
space:
mode:
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