浏览代码

Windows: Appease capricious MSVC versions with moody headers

Fixes #37799.
Fixes #37986.

(cherry picked from commit 4d3a18d9ff7db4570fedcc2f89354c41c31b9513)
Rémi Verschelde 5 年之前
父节点
当前提交
1d2aa22438
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      platform/windows/crash_handler_win.cpp

+ 3 - 1
platform/windows/crash_handler_win.cpp

@@ -34,9 +34,11 @@
 
 // Backtrace code code based on: https://stackoverflow.com/questions/6205981/windows-c-stack-trace-from-a-running-app
 
-#include <psapi.h>
 #include <algorithm>
 #include <iterator>
+#include <string>
+
+#include <psapi.h>
 
 #pragma comment(lib, "psapi.lib")
 #pragma comment(lib, "dbghelp.lib")