]> granicus.if.org Git - php/commitdiff
add missing include guards
authorAnatol Belski <ab@php.net>
Tue, 4 Jul 2017 14:21:45 +0000 (16:21 +0200)
committerAnatol Belski <ab@php.net>
Tue, 4 Jul 2017 14:21:45 +0000 (16:21 +0200)
win32/grp.h
win32/inet.h
win32/param.h
win32/resource.h
win32/select.h
win32/sockets.h
win32/winutil.h

index 8a086a5bbf82fe7c31acfc593f57c9b56bd75a13..f4a52f4dfdb8de53906bc6005a3f5d4ec0c81d77 100644 (file)
@@ -18,6 +18,9 @@
 
 /* $Id$ */
 
+#ifndef PHP_WIN32_GRP_H
+#define PHP_WIN32_GRP_H
+
 struct group {
        char *gr_name;
        char *gr_passwd;
@@ -25,6 +28,8 @@ struct group {
        char **gr_mem;
 };
 
+#endif
+
 /*
  * Local variables:
  * tab-width: 4
index f8b2704e0eff0f069243bfce241376260fbe8d37..eb6b3eb85f7ca214d5746ff0d83842f25e681cff 100644 (file)
    +----------------------------------------------------------------------+
  */
 
+#ifndef PHP_WIN32_INET_H
+#define PHP_WIN32_INET_H
 
 #include <php.h>
 #include <Winsock2.h>
 
 PHPAPI int inet_aton(const char *cp, struct in_addr *inp);
 
+#endif
+
 /*
  * Local variables:
  * tab-width: 4
index 885a3b66a41456738c0ff2d6af9fd148606f6840..1601a3cc16bb99916619b46978569ed526959adc 100644 (file)
@@ -8,6 +8,9 @@
  * Copyright 1994 The Downhill Project                                       *
  *                                                                           *
  *****************************************************************************/
+#ifndef PHP_WIN32_PARAM_H
+#define PHP_WIN32_PARAM_H
+
 #ifndef MAXPATHLEN
 #include "win32/ioutil.h"
 #define MAXPATHLEN PHP_WIN32_IOUTIL_MAXPATHLEN
@@ -16,6 +19,8 @@
 #define howmany(x,y)   (((x)+((y)-1))/(y))
 #define roundup(x,y)   ((((x)+((y)-1))/(y))*(y))
 
+#endif
+
 /*
  * Local variables:
  * tab-width: 4
index ef17e01d1c821456fea5eb23aa53a632db99b94c..05e311151228a771336586053ea18bb0c16c565c 100644 (file)
@@ -3,6 +3,9 @@
 // Used by php7dllts.rc
 //
 
+#ifndef PHP_WIN32_RESOURCE_H
+#define PHP_WIN32_RESOURCE_H
+
 // Next default values for new objects
 //
 #ifdef APSTUDIO_INVOKED
@@ -14,6 +17,8 @@
 #endif
 #endif
 
+#endif
+
 /*
  * Local variables:
  * tab-width: 4
index 12504440555866763406b598abf63a7e68aee2f3..ac0572f81994f2a4c9d6f426b9942b71e4adcaac 100644 (file)
 
 /* $Id$ */
 
+#ifndef PHP_WIN32_SELECT_H
+#define PHP_WIN32_SELECT_H
+
 #include "php_network.h"
 
 PHPAPI int php_select(php_socket_t max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *tv);
 
+#endif
+
 /*
  * Local variables:
  * tab-width: 4
index 4c1237ce8b69f134c10ea0ad68fba23734e0084d..008587caef0aa73109dff1b9678a8b034c2414af 100644 (file)
 
 /* Code originally from ext/sockets */
 
+#ifndef PHP_WIN32_SOCKETS_H
+#define PHP_WIN32_SOCKETS_H
+
 PHPAPI int socketpair(int domain, int type, int protocol, SOCKET sock[2]);
 
+#endif
+
 /*
  * Local variables:
  * tab-width: 4
index 364c9bc2cb1b0d0955eaa8244e99360b61fdb81d..d4d3700f206c3c58cc9b9ed177969bb546a61b72 100644 (file)
@@ -16,6 +16,9 @@
    +----------------------------------------------------------------------+
  */
 
+#ifndef PHP_WIN32_WINUTIL_H
+#define PHP_WIN32_WINUTIL_H
+
 #ifdef PHP_EXPORTS
 # define PHP_WINUTIL_API __declspec(dllexport)
 #else
@@ -50,6 +53,8 @@ PHP_WINUTIL_API int php_win32_code_to_errno(unsigned long w32Err);
 
 PHP_WINUTIL_API char *php_win32_get_username(void);
 
+#endif
+
 /*
  * Local variables:
  * tab-width: 4