From acb8eb4a501ebed4c8df090065689d76a15552f4 Mon Sep 17 00:00:00 2001 From: damitha Date: Wed, 7 Jul 2010 06:59:04 +0000 Subject: jira AXIS2C-1472 and jira AXIS2C-1483 git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@961258 13f79535-47bb-0310-9956-ffa450edef68 --- util/include/platforms/os400/axutil_os400.h | 6 +++++- util/include/platforms/unix/axutil_unix.h | 6 +++++- util/include/platforms/windows/axutil_windows.h | 5 ++++- 3 files changed, 14 insertions(+), 3 deletions(-) (limited to 'util/include') diff --git a/util/include/platforms/os400/axutil_os400.h b/util/include/platforms/os400/axutil_os400.h index 5261c4d..8c8f12c 100644 --- a/util/include/platforms/os400/axutil_os400.h +++ b/util/include/platforms/os400/axutil_os400.h @@ -258,7 +258,11 @@ static int os400_ftime(struct os400_timeb * tp) /** minizip functions */ #define axis2_fill_win32_filefunc(ffunc) -#define AXIS2_UNZOPEN2(zipfilename,ffunc) do { unzOpen2(zipfilename,NULL); memset(&ffunc, 0, sizeof(ffunc)); } while (0) +#define AXIS2_UNZOPEN2(zipfilename, ffunc, uf) \ + { \ + uf = unzOpen2(zipfilename,NULL); \ + memset(&ffunc, 0, sizeof(ffunc)); \ + } /** * handling variable number of arguments (for log.c) diff --git a/util/include/platforms/unix/axutil_unix.h b/util/include/platforms/unix/axutil_unix.h index 3088d0d..7a5c084 100644 --- a/util/include/platforms/unix/axutil_unix.h +++ b/util/include/platforms/unix/axutil_unix.h @@ -262,7 +262,11 @@ extern "C" /** minizip functions */ #define axis2_fill_win32_filefunc(ffunc) -#define AXIS2_UNZOPEN2(zipfilename,ffunc) unzOpen2(zipfilename,NULL); memset(&ffunc, 0, sizeof(ffunc)); +#define AXIS2_UNZOPEN2(zipfilename, ffunc, uf) \ + { \ + uf = unzOpen2(zipfilename,NULL); \ + memset(&ffunc, 0, sizeof(ffunc)); \ + } /** * handling variable number of arguments (for log.c) diff --git a/util/include/platforms/windows/axutil_windows.h b/util/include/platforms/windows/axutil_windows.h index 44a3ac9..53d332c 100644 --- a/util/include/platforms/windows/axutil_windows.h +++ b/util/include/platforms/windows/axutil_windows.h @@ -255,7 +255,10 @@ extern "C" * minizip functions */ #define axis2_fill_win32_filefunc(ffunc) fill_win32_filefunc(ffunc) -#define AXIS2_UNZOPEN2(zipfilename,ffunc) unzOpen2(zipfilename,NULL) +#define AXIS2_UNZOPEN2(zipfilename, ffunc, uf) \ + { \ + uf = unzOpen2(zipfilename,NULL); \ + } /** * handling variable number of arguments (for log.c) -- cgit v1.1-32-gdbae