瀏覽代碼

Fixes Visual Studio compile error due to pe_bliss

Error: C2039: 'min': is not a member of 'std'
Reason: #2518 introduced pe_bliss

Fix: Visual Studio 2015 & 2013 need to include algorithm header before string, otherwise std:min cannot be used.
See: http://stackoverflow.com/questions/17409956
ZuBsPaCe 9 年之前
父節點
當前提交
2b36da0f79
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      tools/pe_bliss/pe_section.cpp

+ 1 - 0
tools/pe_bliss/pe_section.cpp

@@ -19,6 +19,7 @@
 /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE     */
 /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                */
 /*************************************************************************/
+#include <algorithm>
 #include <string.h>
 #include "utils.h"
 #include "pe_section.h"