fix windows build

This commit is contained in:
Xueyun Zhu 2020-03-25 19:18:50 +00:00
parent 9eb792a5b3
commit a031af8cfc

View file

@ -1,9 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "core/platform/path_lib.h"
#include "gtest/gtest.h"
#include <string>
#include "gtest/gtest.h"
@ -11,6 +8,12 @@
#include "core/platform/env.h"
#include "test/framework/test_utils.h"
// Windows.h reserves the word OPTIONAL in macro, which introduces
// conflict on variables declared from onnx external library. Currently workaround
// this by re-ordering the included files.
// TODO: undefine OPTIONAL in path_lib.h and move path_lib.h to the first include
#include "core/platform/path_lib.h"
namespace onnxruntime {
namespace test {