]> granicus.if.org Git - php/commitdiff
Fix win32 build.
authorIlia Alshanetsky <iliaa@php.net>
Mon, 28 Oct 2002 12:37:31 +0000 (12:37 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 28 Oct 2002 12:37:31 +0000 (12:37 +0000)
main/streams.c

index ee1328b0f1a733e9d19b9b9bb3b7ff624f7a66a6..c680cf3c313db070c3d3973dfe00ecca76802816 100755 (executable)
@@ -1639,6 +1639,10 @@ PHPAPI php_stream *_php_stream_fopen_with_path(char *filename, char *mode, char
 }
 /* }}} */
 
+#ifndef S_ISREG
+#define S_ISREG(mode)  (((mode)&S_IFMT) == S_IFREG)
+#endif
+
 /* {{{ php_stream_fopen */
 PHPAPI php_stream *_php_stream_fopen(const char *filename, const char *mode, char **opened_path, int options STREAMS_DC TSRMLS_DC)
 {