Skip to content

Commit c001d21

Browse files
beckerhecopybara-github
authored andcommitted
Remove remaining usages of tsl::protobuf
The alias namespace tsl::protobuf has been deprecated for a while, so this change cleans up all the remaining usages. PiperOrigin-RevId: 850662585
1 parent 7415bdc commit c001d21

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tsl/platform/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ cc_library(
198198
deps = [
199199
":platform",
200200
":tstring",
201+
"@com_google_absl//absl/base:core_headers",
201202
"@xla//xla/tsl/platform:types",
202203
] + tsl_protobuf_deps(),
203204
)

tsl/platform/protobuf.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ limitations under the License.
2121
#include <string>
2222
#include <utility>
2323

24+
#include "absl/base/macros.h"
2425
#include "xla/tsl/platform/types.h"
2526
#include "tsl/platform/platform.h"
2627

@@ -57,8 +58,8 @@ limitations under the License.
5758
namespace tsl {
5859

5960
namespace protobuf = ::google::protobuf;
60-
using protobuf_int64 = int64_t;
61-
using protobuf_uint64 = uint64_t;
61+
using protobuf_int64 ABSL_DEPRECATE_AND_INLINE() = int64_t;
62+
using protobuf_uint64 ABSL_DEPRECATE_AND_INLINE() = uint64_t;
6263
extern const char* kProtobufInt64Typename;
6364
extern const char* kProtobufUint64Typename;
6465

0 commit comments

Comments
 (0)