swig: ifdef some Java specific code

no implementation change

Change-Id: I077c707e1f6293188e6fa11ba24757009a709f77
This commit is contained in:
James Zern 2013-05-08 17:13:40 -07:00
parent 732da8d0f0
commit c7247c4c68

View File

@ -71,7 +71,10 @@ int WebPGetEncoderVersion(void);
%{ %{
#include "webp/decode.h" #include "webp/decode.h"
#include "webp/encode.h" #include "webp/encode.h"
%}
#ifdef SWIGJAVA
%{
#define FillMeInAsSizeCannotBeDeterminedAutomatically \ #define FillMeInAsSizeCannotBeDeterminedAutomatically \
(result ? returned_buffer_size(__FUNCTION__, arg3, arg4) : 0) (result ? returned_buffer_size(__FUNCTION__, arg3, arg4) : 0)
@ -108,6 +111,10 @@ static jint returned_buffer_size(
return size; return size;
} }
%}
#endif /* SWIGJAVA */
%{
typedef size_t (*WebPEncodeFunction)(const uint8_t* rgb, typedef size_t (*WebPEncodeFunction)(const uint8_t* rgb,
int width, int height, int stride, int width, int height, int stride,