add version check

This commit is contained in:
David Renshaw 2014-11-29 08:50:43 -05:00
parent ed615fdeb9
commit aa25559900

View file

@ -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