mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-19 19:00:47 +00:00
fix windows build
This commit is contained in:
parent
9eb792a5b3
commit
a031af8cfc
1 changed files with 6 additions and 3 deletions
|
|
@ -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 {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue