summaryrefslogtreecommitdiff
path: root/win32/contrib/dirent/dirent.h
diff options
context:
space:
mode:
authorFrantišek Dvořák <valtri@users.sourceforge.net>2005-02-11 21:18:39 +0000
committerFrantišek Dvořák <valtri@users.sourceforge.net>2005-02-11 21:18:39 +0000
commit15cb35d76e13c16d636167e227c915bd03511af3 (patch)
tree1703b9c97ea5a8f2b124426f2a5de63adcc34c3a /win32/contrib/dirent/dirent.h
parent0409d87a31d7cb839eb8810d3cb8c612def3a874 (diff)
downloadxine-lib-15cb35d76e13c16d636167e227c915bd03511af3.tar.gz
xine-lib-15cb35d76e13c16d636167e227c915bd03511af3.tar.bz2
Fixed windows build by adding d_reclen into win32 dirent wrapper.
Convert /r/n --> /n (patch tool doesn't handle it, grr). CVS patchset: 7399 CVS date: 2005/02/11 21:18:39
Diffstat (limited to 'win32/contrib/dirent/dirent.h')
-rw-r--r--win32/contrib/dirent/dirent.h65
1 files changed, 33 insertions, 32 deletions
diff --git a/win32/contrib/dirent/dirent.h b/win32/contrib/dirent/dirent.h
index 588048c67..46e0ed127 100644
--- a/win32/contrib/dirent/dirent.h
+++ b/win32/contrib/dirent/dirent.h
@@ -1,32 +1,33 @@
-/*
-
- Declaration of POSIX directory browsing functions and types for Win32.
-
- Kevlin Henney (mailto:kevlin@acm.org), March 1997.
-
- Copyright Kevlin Henney, 1997. All rights reserved.
-
- Permission to use, copy, modify, and distribute this software and its
- documentation for any purpose is hereby granted without fee, provided
- that this copyright and permissions notice appear in all copies and
- derivatives, and that no charge may be made for the software and its
- documentation except to cover cost of distribution.
-
-*/
-
-#ifndef DIRENT_INCLUDED
-#define DIRENT_INCLUDED
-
-typedef struct DIR DIR;
-
-struct dirent
-{
- char *d_name;
-};
-
-DIR *opendir(const char *);
-int closedir(DIR *);
-struct dirent *readdir(DIR *);
-void rewinddir(DIR *);
-
-#endif
+/*
+
+ Declaration of POSIX directory browsing functions and types for Win32.
+
+ Kevlin Henney (mailto:kevlin@acm.org), March 1997.
+
+ Copyright Kevlin Henney, 1997. All rights reserved.
+
+ Permission to use, copy, modify, and distribute this software and its
+ documentation for any purpose is hereby granted without fee, provided
+ that this copyright and permissions notice appear in all copies and
+ derivatives, and that no charge may be made for the software and its
+ documentation except to cover cost of distribution.
+
+*/
+
+#ifndef DIRENT_INCLUDED
+#define DIRENT_INCLUDED
+
+typedef struct DIR DIR;
+
+struct dirent
+{
+ unsigned short d_reclen;
+ char *d_name;
+};
+
+DIR *opendir(const char *);
+int closedir(DIR *);
+struct dirent *readdir(DIR *);
+void rewinddir(DIR *);
+
+#endif