mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
add missing include guards
This commit is contained in:
parent
a56700043e
commit
bae668ee2a
7 changed files with 34 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -16,12 +16,16 @@
|
|||
+----------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
#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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -18,10 +18,15 @@
|
|||
|
||||
/* $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
|
||||
|
|
|
@ -23,8 +23,13 @@
|
|||
|
||||
/* 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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue