From c7247c4c6847d49ff696dc02c6da4828ce23ffc7 Mon Sep 17 00:00:00 2001 From: James Zern Date: Wed, 8 May 2013 17:13:40 -0700 Subject: [PATCH] swig: ifdef some Java specific code no implementation change Change-Id: I077c707e1f6293188e6fa11ba24757009a709f77 --- swig/libwebp.i | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/swig/libwebp.i b/swig/libwebp.i index b2014e16..de80b6e4 100644 --- a/swig/libwebp.i +++ b/swig/libwebp.i @@ -71,7 +71,10 @@ int WebPGetEncoderVersion(void); %{ #include "webp/decode.h" #include "webp/encode.h" +%} +#ifdef SWIGJAVA +%{ #define FillMeInAsSizeCannotBeDeterminedAutomatically \ (result ? returned_buffer_size(__FUNCTION__, arg3, arg4) : 0) @@ -108,6 +111,10 @@ static jint returned_buffer_size( return size; } +%} +#endif /* SWIGJAVA */ + +%{ typedef size_t (*WebPEncodeFunction)(const uint8_t* rgb, int width, int height, int stride,