For compatibility with SWIG < 1.3.22, test the swig version before using the new

java enum handling way.
This commit is contained in:
Romain Chantereay 2004-09-07 11:35:12 +00:00
parent 3fe2256876
commit b31f29eab1
1 changed files with 3 additions and 1 deletions

View File

@ -73,7 +73,9 @@
%}
#ifdef SWIGJAVA
%include "enumsimple.swg"
#if SWIG_version == "1.3.22"
%include "enumsimple.swg"
#endif
%pragma(java) jniclasscode=%{
static {
try {