]> granicus.if.org Git - php/commitdiff
- drop sys/ctype.h and use BEGIN/END_DECL_C instead
authorPierre Joye <pajoye@php.net>
Fri, 22 Aug 2008 11:40:45 +0000 (11:40 +0000)
committerPierre Joye <pajoye@php.net>
Fri, 22 Aug 2008 11:40:45 +0000 (11:40 +0000)
win32/glob.h

index 4e842a5cee52d435e60ab19b212fc725f8156e0d..dabf095763ba2d2081e025f1d392b512c0a2ef25 100644 (file)
@@ -43,7 +43,9 @@
 #ifndef _GLOB_H_
 #define        _GLOB_H_
 
-#include <sys/cdefs.h>
+#ifndef PHP_WIN32
+# include <sys/cdefs.h>
+#endif
 
 struct stat;
 typedef struct {
@@ -93,9 +95,8 @@ typedef struct {
 #define        GLOB_NOSYS      (-4)    /* Function not supported. */
 #define GLOB_ABEND     GLOB_ABORTED
 
-__BEGIN_DECLS
+BEGIN_EXTERN_C()
 int    glob(const char *, int, int (*)(const char *, int), glob_t *);
 void   globfree(glob_t *);
-__END_DECLS
-
+END_EXTERN_C()
 #endif /* !_GLOB_H_ */