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"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if CAPNP_VERSION < 5000
|
||||||
|
#error "This version of capnpc-java requires Cap'n Proto version 0.5 or higher."
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef VERSION
|
#ifndef VERSION
|
||||||
#define VERSION "(unknown)"
|
#define VERSION "(unknown)"
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue