mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-09 00:30:53 +00:00
Disable _tlgPragmaUtf8Begin and _tlgPragmaUtf8End as well. (#2977)
This commit is contained in:
parent
c32cedc6c9
commit
f03e720727
2 changed files with 34 additions and 2 deletions
|
|
@ -23,10 +23,27 @@
|
|||
#include <evntrace.h>
|
||||
|
||||
//See: https://developercommunity.visualstudio.com/content/problem/85934/traceloggingproviderh-is-incompatible-with-utf-8.html
|
||||
#ifdef _TlgPragmaUtf8Begin
|
||||
#undef _TlgPragmaUtf8Begin
|
||||
#undef _TlgPragmaUtf8End
|
||||
#define _TlgPragmaUtf8Begin
|
||||
#endif
|
||||
|
||||
#ifdef _TlgPragmaUtf8End
|
||||
#undef _TlgPragmaUtf8End
|
||||
#define _TlgPragmaUtf8End
|
||||
#endif
|
||||
|
||||
// Different versions of TraceLoggingProvider.h contain different macro variable names for the utf8 begin and end,
|
||||
// and we need to cover the lower case version as well.
|
||||
#ifdef _tlgPragmaUtf8Begin
|
||||
#undef _tlgPragmaUtf8Begin
|
||||
#define _tlgPragmaUtf8Begin
|
||||
#endif
|
||||
|
||||
#ifdef _tlgPragmaUtf8End
|
||||
#undef _tlgPragmaUtf8End
|
||||
#define _tlgPragmaUtf8End
|
||||
#endif
|
||||
|
||||
namespace onnxruntime {
|
||||
namespace logging {
|
||||
|
|
|
|||
|
|
@ -21,11 +21,26 @@
|
|||
//https://developercommunity.visualstudio.com/content/problem/85934/traceloggingproviderh-is-incompatible-with-utf-8.html
|
||||
#ifdef _TlgPragmaUtf8Begin
|
||||
#undef _TlgPragmaUtf8Begin
|
||||
#undef _TlgPragmaUtf8End
|
||||
#define _TlgPragmaUtf8Begin
|
||||
#endif
|
||||
|
||||
#ifdef _TlgPragmaUtf8End
|
||||
#undef _TlgPragmaUtf8End
|
||||
#define _TlgPragmaUtf8End
|
||||
#endif
|
||||
|
||||
// Different versions of TraceLoggingProvider.h contain different macro variable names for the utf8 begin and end,
|
||||
// and we need to cover the lower case version as well.
|
||||
#ifdef _tlgPragmaUtf8Begin
|
||||
#undef _tlgPragmaUtf8Begin
|
||||
#define _tlgPragmaUtf8Begin
|
||||
#endif
|
||||
|
||||
#ifdef _tlgPragmaUtf8End
|
||||
#undef _tlgPragmaUtf8End
|
||||
#define _tlgPragmaUtf8End
|
||||
#endif
|
||||
|
||||
namespace onnxruntime {
|
||||
|
||||
namespace {
|
||||
|
|
|
|||
Loading…
Reference in a new issue