diff liboctave/lo-sysdep.h @ 6123:8d285942fc3c

[project @ 2006-10-28 14:09:20 by jwe]
author jwe
date Sat, 28 Oct 2006 14:11:18 +0000
parents 4c8a2e4e0717
children 363a2f8c9e97
line wrap: on
line diff
--- a/liboctave/lo-sysdep.h	Sat Oct 28 13:56:55 2006 +0000
+++ b/liboctave/lo-sysdep.h	Sat Oct 28 14:11:18 2006 +0000
@@ -36,6 +36,27 @@
 extern int gethostname (char *, int);
 #endif
 
+#if defined (_MSC_VER)
+
+// FIXME -- it would probably be better to adapt the versions of
+// opendir, readdir, and closedir from Emacs as they appear to be more
+// complete implementations.  We can probably get along without
+// rewinddir.
+
+struct direct
+{
+  char *d_name;
+};
+
+typedef struct __DIR DIR;
+
+extern DIR* opendir (const char *name);
+extern void rewinddir (DIR *d);
+extern void closedir (DIR *d);
+extern struct direct *readdir (DIR *d);
+
+#endif
+
 #endif
 
 /*