Skip to content

Commit

Permalink
Fix compilation error in GenAI
Browse files Browse the repository at this point in the history
  • Loading branch information
skyline75489 committed Dec 20, 2024
1 parent 02e098c commit f588174
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 7 additions & 0 deletions base/file_sys.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
#pragma once

#ifdef _WIN32
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#endif

#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <Windows.h>
#endif // _WIN32

Expand Down
5 changes: 2 additions & 3 deletions include/ortx_tokenizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@ struct OrtxTokenizerBlob {
const std::string_view& raw_model_blob = {})
: config_json_blob(config_json_blob.data()), vocab_json_blob(vocab_json_blob.data()),
token_module_blob(token_module_blob.data()), raw_model_blob(raw_model_blob.data()),
config_blob_len(config_json_blob.size()),
reserved_blob_1(nullptr), config_blob_len(config_json_blob.size()),
vocab_blob_len(vocab_json_blob.size()), token_module_blob_len(token_module_blob.size()),
raw_model_blob_len(raw_model_blob.size()), reserved_blob_1(nullptr),
reserved_blob_1_len(0) {}
raw_model_blob_len(raw_model_blob.size()), reserved_blob_1_len(0) {}
#endif
};

Expand Down

0 comments on commit f588174

Please sign in to comment.