From: Andy Spencer Date: Mon, 29 Aug 2011 00:13:39 +0000 (+0000) Subject: Add blank gzip version for Win32 X-Git-Url: http://pileus.org/git/?p=~andy%2Frsl;a=commitdiff_plain;h=b7df902de181416cacdb53d024ac2f283a6e3029 Add blank gzip version for Win32 --- diff --git a/src/Makefile.am b/src/Makefile.am index 7bcf381..ffafa9e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -23,7 +23,7 @@ librsl_la_SOURCES = \ carpi.c cube.c sort_rays.c toga_to_radar.c gts.c histogram.c \ ray_indexes.c anyformat_to_radar.c get_win.c endian.c mcgill_to_radar.c \ mcgill.c interp.c toga.c wsr88d.c wsr88d_get_site.c wsr88d_m31.c \ - gzip.c prune.c reverse.c fix_headers.c \ + prune.c reverse.c fix_headers.c \ nsig_to_radar.c nsig.c nsig2_to_radar.c \ africa_to_radar.c africa.c \ radar_to_hdf_2.c hdf_to_radar.c toolkit_memory_mgt.c \ @@ -32,7 +32,10 @@ librsl_la_SOURCES = \ if WIN32 librsl_la_LDFLAGS += -mwindows -no-undefined librsl_la_LIBADD = -lws2_32 +librsl_la_SOURCES += gzip_win32.c dots = .. +else +librsl_la_SOURCES += gzip.c endif # This should be speciifc to rapic, diff --git a/src/gzip_win32.c b/src/gzip_win32.c new file mode 100644 index 0000000..b245390 --- /dev/null +++ b/src/gzip_win32.c @@ -0,0 +1,41 @@ +/* + NASA/TRMM, Code 910.1. + This is the TRMM Office Radar Software Library. + Copyright (C) 2011 Andy Spencer + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this library; if not, write to the Free + Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +#include + +int rsl_pclose(FILE *fp) +{ + return 0; +} + +int no_command (char *cmd) +{ + return !0; +} + +FILE *uncompress_pipe (FILE *fp) +{ + return fp; +} + +FILE *compress_pipe (FILE *fp) +{ + return fp; +}