add version check
This commit is contained in:
parent
ed615fdeb9
commit
aa25559900
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue