From aa2555990094db0d55352dbe61947f29f095e925 Mon Sep 17 00:00:00 2001 From: David Renshaw Date: Sat, 29 Nov 2014 08:50:43 -0500 Subject: [PATCH] add version check --- compiler/src/main/cpp/capnpc-java.c++ | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler/src/main/cpp/capnpc-java.c++ b/compiler/src/main/cpp/capnpc-java.c++ index 18abae2..89c193b 100644 --- a/compiler/src/main/cpp/capnpc-java.c++ +++ b/compiler/src/main/cpp/capnpc-java.c++ @@ -46,6 +46,10 @@ #include "config.h" #endif +#if CAPNP_VERSION < 5000 +#error "This version of capnpc-java requires Cap'n Proto version 0.5 or higher." +#endif + #ifndef VERSION #define VERSION "(unknown)" #endif