Skip to content

Commit e4d2ff2

Browse files
committed
pnglib16 swig on 32 bit plattform
1 parent 50563ae commit e4d2ff2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

unix/Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ WRAPPERS = $(patsubst %.fs, %.fsx, $(TARGETS))
2424
GENWRAPPERS = $(patsubst %.fs, %-fsi.c, $(TARGETS))
2525
LIBRARY = @SWIGLIBS@
2626
HOST_OS = $(subst -,_,@host_os@)
27-
OPTIONS = -forth -Dhost_os_$(HOST_OS) -no-sectioncomments -use-structs -stackcomments $(subst -F,-I, $(INCLUDES))
27+
OPTIONS = -forth -cpperraswarn -Dhost_os_$(HOST_OS) -no-sectioncomments -use-structs -stackcomments $(subst -F,-I, $(INCLUDES))
2828
INSTALL = /usr/bin/install -c
2929
ARCH=
3030
VERSION = "`gforth --version 2>&1 | cut -f2 -d' '`"

unix/pnglib16.i

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ extern struct _IO_FILE *stderr;
88
#endif
99
%}
1010

11-
%apply int { png_size_t, time_t };
11+
%apply int { time_t };
12+
%apply unsigned int { png_size_t, png_uint_32 };
1213

1314
#if defined(host_os_linux_android) || defined(host_os_linux_androideabi)
1415
# define __ANDROID__

0 commit comments

Comments
 (0)