File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 44#pragma once
55
66#ifdef _WIN32
7+ #ifndef WIN32_LEAN_AND_MEAN
8+ #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
9+ #endif
10+
11+ #ifndef NOMINMAX
12+ #define NOMINMAX
13+ #endif
714#include < Windows.h>
815#endif // _WIN32
916
Original file line number Diff line number Diff line change @@ -33,10 +33,9 @@ struct OrtxTokenizerBlob {
3333 const std::string_view& raw_model_blob = {})
3434 : config_json_blob(config_json_blob.data()), vocab_json_blob(vocab_json_blob.data()),
3535 token_module_blob(token_module_blob.data()), raw_model_blob(raw_model_blob.data()),
36- config_blob_len(config_json_blob.size()),
36+ reserved_blob_1( nullptr ), config_blob_len(config_json_blob.size()),
3737 vocab_blob_len(vocab_json_blob.size()), token_module_blob_len(token_module_blob.size()),
38- raw_model_blob_len(raw_model_blob.size()), reserved_blob_1(nullptr ),
39- reserved_blob_1_len(0 ) {}
38+ raw_model_blob_len(raw_model_blob.size()), reserved_blob_1_len(0 ) {}
4039#endif
4140};
4241
You can’t perform that action at this time.
0 commit comments