Browse Source

[MinGW]FL build fix

AlexVinS 11 năm trước cách đây
mục cha
commit
5e42fb8a2a
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      AI/FuzzyLite/fuzzylite/src/Exception.cpp

+ 3 - 1
AI/FuzzyLite/fuzzylite/src/Exception.cpp

@@ -34,8 +34,10 @@
 #elif defined FL_WINDOWS
 #include <windows.h>
 #include <winbase.h>
+#ifndef __MINGW32__
 #include <dbghelp.h>
 #endif
+#endif
 
 
 #include <signal.h>
@@ -108,7 +110,7 @@ namespace fl {
         return btStream.str();
 
 
-#elif defined FL_WINDOWS
+#elif defined FL_WINDOWS && ! defined __MINGW32__
         std::ostringstream btStream;
         const int bufferSize = 30;
         void* buffer[bufferSize];