Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 55 lines (45 sloc) 1.931 kb
ec11fe0 Fix the possible conflicts with other libs (like libc-client)
foobar authored
1 /*
2 +----------------------------------------------------------------------+
ccfc46b - Happy new year and PHP 5 for rest of the files too..
foobar authored
3 | PHP Version 5 |
ec11fe0 Fix the possible conflicts with other libs (like libc-client)
foobar authored
4 +----------------------------------------------------------------------+
4e19825 @felipensp - Year++
felipensp authored
5 | Copyright (c) 1997-2012 The PHP Group |
ec11fe0 Fix the possible conflicts with other libs (like libc-client)
foobar authored
6 +----------------------------------------------------------------------+
5bd9322 bump year and license version
foobar authored
7 | This source file is subject to version 3.01 of the PHP license, |
ec11fe0 Fix the possible conflicts with other libs (like libc-client)
foobar authored
8 | that is bundled with this package in the file LICENSE, and is |
f68c7ff updating license information in the headers.
James Cox authored
9 | available through the world-wide-web at the following url: |
5bd9322 bump year and license version
foobar authored
10 | http://www.php.net/license/3_01.txt |
ec11fe0 Fix the possible conflicts with other libs (like libc-client)
foobar authored
11 | If you did not receive a copy of the PHP license and are unable to |
12 | obtain it through the world-wide-web, please send a note to |
13 | license@php.net so we can mail you a copy immediately. |
14 +----------------------------------------------------------------------+
15 | Authors: Shane Caraveo <shane@caraveo.com> |
16 | Ilia Alshanetsky <ilia@prohost.org> |
17 +----------------------------------------------------------------------+
18 */
19
20 /* $Id$ */
21
22 #ifndef PHP_SCANDIR_H
23 #define PHP_SCANDIR_H
24
d59d500 Moved the scandir code into it's own files so that it can be used by oth...
Ilia Alshanetsky authored
25 #include <sys/types.h>
26
6ed7906 configure.in
foobar authored
27 #ifdef HAVE_SYS_DIR_H
28 #include <sys/dir.h>
29 #endif
30
d59d500 Moved the scandir code into it's own files so that it can be used by oth...
Ilia Alshanetsky authored
31 #ifdef PHP_WIN32
b9a7918 2nd part of Sebastian's patch.
Ilia Alshanetsky authored
32 #include "config.w32.h"
d59d500 Moved the scandir code into it's own files so that it can be used by oth...
Ilia Alshanetsky authored
33 #include "win32/readdir.h"
b9a7918 2nd part of Sebastian's patch.
Ilia Alshanetsky authored
34 #else
a139dbf - Fix outside-source-tree builds. Always include generated header files
foobar authored
35 #include <php_config.h>
d59d500 Moved the scandir code into it's own files so that it can be used by oth...
Ilia Alshanetsky authored
36 #endif
37
ccf8365 Fixed bug #22021.
Ilia Alshanetsky authored
38 #ifdef HAVE_DIRENT_H
ec11fe0 Fix the possible conflicts with other libs (like libc-client)
foobar authored
39 #include <dirent.h>
ccf8365 Fixed bug #22021.
Ilia Alshanetsky authored
40 #endif
0458bb5 MFB
foobar authored
41
42 #ifdef HAVE_SCANDIR
ec11fe0 Fix the possible conflicts with other libs (like libc-client)
foobar authored
43 #define php_scandir scandir
44 #else
ef68d9f @pierrejoye - export php_scandir and php_alphasort correctly (used by APC for exampl...
pierrejoye authored
45 PHPAPI int php_scandir(const char *dirname, struct dirent **namelist[], int (*selector) (const struct dirent *entry), int (*compare) (const struct dirent **a, const struct dirent **b));
d59d500 Moved the scandir code into it's own files so that it can be used by oth...
Ilia Alshanetsky authored
46 #endif
47
ec11fe0 Fix the possible conflicts with other libs (like libc-client)
foobar authored
48 #ifdef HAVE_ALPHASORT
49 #define php_alphasort alphasort
50 #else
ef68d9f @pierrejoye - export php_scandir and php_alphasort correctly (used by APC for exampl...
pierrejoye authored
51 PHPAPI int php_alphasort(const struct dirent **a, const struct dirent **b);
d59d500 Moved the scandir code into it's own files so that it can be used by oth...
Ilia Alshanetsky authored
52 #endif
ec11fe0 Fix the possible conflicts with other libs (like libc-client)
foobar authored
53
54 #endif /* PHP_SCANDIR_H */
Something went wrong with that request. Please try again.