Skip to content

Commit

Permalink
cleanup more redundant S_IS* declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
weltling committed May 25, 2015
1 parent d713fcc commit cfadcfc
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
4 changes: 0 additions & 4 deletions ext/opcache/zend_accelerator_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,6 @@ static ZEND_INI_MH(OnEnable)

#ifdef HAVE_OPCACHE_FILE_CACHE

#ifndef S_ISDIR
# define S_ISDIR(mode) (((mode)&S_IFMT) == S_IFDIR)
#endif

static ZEND_INI_MH(OnUpdateFileCache)
{
if (new_value) {
Expand Down
4 changes: 0 additions & 4 deletions sapi/cli/php_cli_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,6 @@
# define SOCK_EADDRINUSE WSAEADDRINUSE
#endif

#ifndef S_ISDIR
#define S_ISDIR(mode) (((mode)&S_IFMT) == S_IFDIR)
#endif

#include "ext/standard/file.h" /* for php_set_sock_blocking() :-( */
#include "zend_smart_str.h"
#include "ext/standard/html.h"
Expand Down
6 changes: 0 additions & 6 deletions win32/glob.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,6 @@
# define ARG_MAX 14500
# endif
#endif
#ifndef S_ISDIR
#define S_ISDIR(m) (((m) & _S_IFDIR) == _S_IFDIR)
#endif
#ifndef S_ISLNK
#define S_ISLNK(m) (0)
#endif
#endif

#include "php.h"
Expand Down

0 comments on commit cfadcfc

Please sign in to comment.