]> Pileus Git - ~andy/rsl/commitdiff
Add blank gzip version for Win32 win32/aweather
authorAndy Spencer <andy753421@gmail.com>
Mon, 29 Aug 2011 00:13:39 +0000 (00:13 +0000)
committerAndy Spencer <andy753421@gmail.com>
Mon, 29 Aug 2011 00:13:39 +0000 (00:13 +0000)
src/Makefile.am
src/gzip_win32.c [new file with mode: 0644]

index 7bcf3813ad11c2c67fd7e01ebe631aed471fe563..ffafa9e89649a7f5e3d523834d6d39d7d37f4e04 100644 (file)
@@ -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 (file)
index 0000000..b245390
--- /dev/null
@@ -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 <stdio.h>
+
+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;
+}