net-libs/ignition-transport: add version guards to the protobuf3 patch so that protob...
authorAlexis Ballier <aballier@gentoo.org>
Sat, 30 Apr 2016 15:20:39 +0000 (17:20 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Sat, 30 Apr 2016 15:21:12 +0000 (17:21 +0200)
Package-Manager: portage-2.2.28
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
net-libs/ignition-transport/files/protobuf3.patch

index c5cdd32a714b36712531b03bf212dd27c8fb3c9e..fffe2296ac0d2a820aa31632efac59ef62b4fc49 100644 (file)
@@ -2,11 +2,13 @@ Index: ignition-transport-1.1.0/include/ignition/transport/RepHandler.hh
 ===================================================================
 --- ignition-transport-1.1.0.orig/include/ignition/transport/RepHandler.hh
 +++ ignition-transport-1.1.0/include/ignition/transport/RepHandler.hh
-@@ -22,6 +22,7 @@
+@@ -22,6 +22,9 @@
  #pragma warning(push, 0)
  #endif
  #include <google/protobuf/message.h>
++#if GOOGLE_PROTOBUF_VERSION >= 3000000
 +#include <google/protobuf/stubs/casts.h>
++#endif
  #ifdef _MSC_VER
  #pragma warning(pop)
  #endif