Move GCC attribute declarations from pref.h.orig to new file
[pspp-builds.git] / src / data / sys-file-reader.c
index c8c70342c957f421f6503bbce331665dad4aee1b..71fd6814ba544dc120d87741c66894b6e05eedbf 100644 (file)
@@ -28,6 +28,7 @@
 #include <setjmp.h>
 #include "alloc.h"
 #include "case.h"
+#include "compiler.h"
 #include "dictionary.h"
 #include "message.h"
 #include "file-handle-def.h"
@@ -1399,9 +1400,13 @@ read_compressed_data (struct sfm_reader *r, flt64 *buf)
       if (r->ptr == NULL || r->ptr >= r->end) 
         {
           if (!buffer_input (r))
-            if (buf_beg != buf)
-              lose ((ME, _("%s: Unexpected end of file."),
-                     fh_get_filename (r->fh))); 
+           {
+             if (buf_beg != buf)
+               lose ((ME, _("%s: Unexpected end of file."),
+                      fh_get_filename (r->fh))); 
+             else
+               return 0;
+           }
         }
       memcpy (r->x, r->ptr++, sizeof *buf);
       p = r->x;