Created
August 16, 2018 03:25
-
-
Save bstriner/1d4ee0db5e5efcc04c6a82b20ee0bebb to your computer and use it in GitHub Desktop.
TensorFlow patch for protobuf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/google/protobuf/generated_message_reflection.h b/src/google/protobuf/generated_message_reflection.h | |
index 177312cf..9a2e8e26 100644 | |
--- a/src/google/protobuf/generated_message_reflection.h | |
+++ b/src/google/protobuf/generated_message_reflection.h | |
@@ -58,6 +58,8 @@ | |
#error "You cannot SWIG proto headers" | |
#endif | |
+#undef GetMessage | |
+ | |
namespace upb { | |
namespace google_opensource { | |
class GMR_Handlers; | |
diff --git a/src/google/protobuf/message.h b/src/google/protobuf/message.h | |
index 007dafa2..2bbe7456 100644 | |
--- a/src/google/protobuf/message.h | |
+++ b/src/google/protobuf/message.h | |
@@ -132,6 +132,8 @@ | |
#error "You cannot SWIG proto headers" | |
#endif | |
+#undef GetMessage | |
+ | |
namespace google { | |
namespace protobuf { | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Save file to
tensorflow
folder and addpatch_file="//tensorflow:[filename.txt]"
to protobuf libraries inworkspace.bzl
.