Fixed some recent problems with the mingw cross compile.
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 20 Apr 2008 07:51:09 +0000 (07:51 +0000)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 20 Apr 2008 07:51:09 +0000 (07:51 +0000)
src/data/data-in.c
src/data/file-name.c
src/data/value.h
src/language/tests/check-model.q

index 28d6da2a42b7b2629779838b28e80000e28f90f0..a6544afbbeb7c338b10f4fe9a978c649fb910e37 100644 (file)
@@ -27,6 +27,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdbool.h>
+#include <limits.h>
 
 #include "calendar.h"
 #include "identifier.h"
index c6f91b56a961c1567cf7b9a4822f8c4d5899088d..86c8e17e467d45c3cf7edac34166b20357cba62f 100644 (file)
@@ -411,7 +411,7 @@ fn_get_identity (const char *file_name)
   identity->device = 0;
   identity->inode = 0;
   identity->name = xstrdup (ok ? cname : file_name);
-  str_lowercase (identity->file_name);
+  str_lowercase (identity->name);
 #endif /* Windows */
 
   return identity;
index cb66cb0836c7b00eeb7e992199650c192b15f780..612ec114013ed00d84611df62ab7730b7e499713 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <libpspp/misc.h>
 #include <stdbool.h>
+#include <stddef.h>
 #include "minmax.h"
 
 /* "Short" strings, which are generally those no more than 8
index c72a30b2af233d9c8e51f0d1ce8e8e57500a5a68..a2654717888d5232f679eacb57190b2284587b50 100644 (file)
@@ -15,6 +15,7 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>. */
 
 #include <config.h>
+#include <limits.h>
 
 #include <language/tests/check-model.h>