diff options
author | Taku Kudo <taku@google.com> | 2020-05-08 06:28:28 +0300 |
---|---|---|
committer | Taku Kudo <taku@google.com> | 2020-05-08 06:28:28 +0300 |
commit | 3ac09a9081a14bb8d39565bedbfe83cc730ada99 (patch) | |
tree | 40e6d60548ecf7996a12620eefd77e76bc789a52 /src | |
parent | 910d95d1acc7f33fa1311772481b98f215727474 (diff) |
Fixed TF build error.
Diffstat (limited to 'src')
-rw-r--r-- | src/sentencepiece_processor.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sentencepiece_processor.h b/src/sentencepiece_processor.h index 61486b8..ce7d61c 100644 --- a/src/sentencepiece_processor.h +++ b/src/sentencepiece_processor.h @@ -21,8 +21,10 @@ #include <utility> #include <vector> -#ifdef _USE_INTERNAL_STRING_VIEW +#if defined(_USE_INTERNAL_STRING_VIEW) #include "third_party/absl/strings/string_view.h" +#elif defined(_USE_TF_STRING_VIEW) +#include "absl/strings/string_view.h" #else // Minimum absl::string_view class that is used only for // the argument of public APIs. |