#endif
#include <stdio.h>
+#if defined(LISP_FEATURE_WIN32)
+#define WIN32_LEAN_AND_MEAN
+#endif
+
#include "runtime.h"
#include "util.h"
#include "wrap.h"
}
#ifdef LISP_FEATURE_WIN32
-#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <time.h>
/*
* src/tools-for-build/grovel-headers.c can grovel the sizes of
* things.
*/
-
+#ifndef _SBCL_WRAP_H_
+#define _SBCL_WRAP_H_
/* As of 0.6.12, the FFI can't handle 64-bit values. For now, we use
* these munged-to-32-bits values for might-be-64-bit slots of
* employed. */
#include "sbcl.h"
-#include "runtime.h"
/* We use an extra layer of aliasing because Linux/MIPS struct stat
doesn't use dev_t. This type is not defined on the Lisp side. */
typedef aliased_dev_t wst_dev_t;
typedef off_t wst_off_t;
#else
-typedef u32 wst_dev_t; /* since Linux dev_t can be 64 bits */
-typedef u32 wst_off_t; /* since OpenBSD 2.8 st_size is 64 bits */
+/* These wrappers shouldn't exist, and since pulling in runtime.h caused
+ * problems on Win32, we don't use the u32 typedef. */
+typedef unsigned int wst_dev_t; /* since Linux dev_t can be 64 bits */
+typedef unsigned int wst_off_t; /* since OpenBSD 2.8 st_size is 64 bits */
#endif
#ifdef LISP_FEATURE_OS_PROVIDES_BLKSIZE_T
time_t wrapped_st_mtime; /* time_t of last modification */
time_t wrapped_st_ctime; /* time_t of last change */
};
+
+#endif /* _SBCL_WRAP_H_ */
DEFTYPE("size-t", size_t);
DEFTYPE("mode-t", mode_t);
+ DEFTYPE("wst-dev-t", wst_dev_t);
+ DEFTYPE("wst-off-t", wst_off_t);
+ DEFTYPE("wst-blksize-t", wst_blksize_t);
+ DEFTYPE("wst-blkcnt-t", wst_blkcnt_t);
+ DEFTYPE("wst-nlink-t", wst_nlink_t);
+ DEFTYPE("wst-uid-t", wst_uid_t);
+ DEFTYPE("wst-gid-t", wst_gid_t);
+ printf("\n");
#else
printf("(in-package \"SB!ALIEN\")\n\n");
;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"1.0.11.29"
+"1.0.11.30"