mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +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$ */
|
/* $Id$ */
|
||||||
|
|
||||||
|
#ifndef PHP_WIN32_GRP_H
|
||||||
|
#define PHP_WIN32_GRP_H
|
||||||
|
|
||||||
struct group {
|
struct group {
|
||||||
char *gr_name;
|
char *gr_name;
|
||||||
char *gr_passwd;
|
char *gr_passwd;
|
||||||
|
@ -25,6 +28,8 @@ struct group {
|
||||||
char **gr_mem;
|
char **gr_mem;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Local variables:
|
* Local variables:
|
||||||
* tab-width: 4
|
* tab-width: 4
|
||||||
|
|
|
@ -16,12 +16,16 @@
|
||||||
+----------------------------------------------------------------------+
|
+----------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef PHP_WIN32_INET_H
|
||||||
|
#define PHP_WIN32_INET_H
|
||||||
|
|
||||||
#include <php.h>
|
#include <php.h>
|
||||||
#include <Winsock2.h>
|
#include <Winsock2.h>
|
||||||
|
|
||||||
PHPAPI int inet_aton(const char *cp, struct in_addr *inp);
|
PHPAPI int inet_aton(const char *cp, struct in_addr *inp);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Local variables:
|
* Local variables:
|
||||||
* tab-width: 4
|
* tab-width: 4
|
||||||
|
|
|
@ -8,6 +8,9 @@
|
||||||
* Copyright 1994 The Downhill Project *
|
* Copyright 1994 The Downhill Project *
|
||||||
* *
|
* *
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
#ifndef PHP_WIN32_PARAM_H
|
||||||
|
#define PHP_WIN32_PARAM_H
|
||||||
|
|
||||||
#ifndef MAXPATHLEN
|
#ifndef MAXPATHLEN
|
||||||
#include "win32/ioutil.h"
|
#include "win32/ioutil.h"
|
||||||
#define MAXPATHLEN PHP_WIN32_IOUTIL_MAXPATHLEN
|
#define MAXPATHLEN PHP_WIN32_IOUTIL_MAXPATHLEN
|
||||||
|
@ -16,6 +19,8 @@
|
||||||
#define howmany(x,y) (((x)+((y)-1))/(y))
|
#define howmany(x,y) (((x)+((y)-1))/(y))
|
||||||
#define roundup(x,y) ((((x)+((y)-1))/(y))*(y))
|
#define roundup(x,y) ((((x)+((y)-1))/(y))*(y))
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Local variables:
|
* Local variables:
|
||||||
* tab-width: 4
|
* tab-width: 4
|
||||||
|
|
|
@ -3,6 +3,9 @@
|
||||||
// Used by php7dllts.rc
|
// Used by php7dllts.rc
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#ifndef PHP_WIN32_RESOURCE_H
|
||||||
|
#define PHP_WIN32_RESOURCE_H
|
||||||
|
|
||||||
// Next default values for new objects
|
// Next default values for new objects
|
||||||
//
|
//
|
||||||
#ifdef APSTUDIO_INVOKED
|
#ifdef APSTUDIO_INVOKED
|
||||||
|
@ -14,6 +17,8 @@
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Local variables:
|
* Local variables:
|
||||||
* tab-width: 4
|
* tab-width: 4
|
||||||
|
|
|
@ -18,10 +18,15 @@
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|
||||||
|
#ifndef PHP_WIN32_SELECT_H
|
||||||
|
#define PHP_WIN32_SELECT_H
|
||||||
|
|
||||||
#include "php_network.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);
|
PHPAPI int php_select(php_socket_t max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *tv);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Local variables:
|
* Local variables:
|
||||||
* tab-width: 4
|
* tab-width: 4
|
||||||
|
|
|
@ -23,8 +23,13 @@
|
||||||
|
|
||||||
/* Code originally from ext/sockets */
|
/* 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]);
|
PHPAPI int socketpair(int domain, int type, int protocol, SOCKET sock[2]);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Local variables:
|
* Local variables:
|
||||||
* tab-width: 4
|
* tab-width: 4
|
||||||
|
|
|
@ -16,6 +16,9 @@
|
||||||
+----------------------------------------------------------------------+
|
+----------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef PHP_WIN32_WINUTIL_H
|
||||||
|
#define PHP_WIN32_WINUTIL_H
|
||||||
|
|
||||||
#ifdef PHP_EXPORTS
|
#ifdef PHP_EXPORTS
|
||||||
# define PHP_WINUTIL_API __declspec(dllexport)
|
# define PHP_WINUTIL_API __declspec(dllexport)
|
||||||
#else
|
#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);
|
PHP_WINUTIL_API char *php_win32_get_username(void);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Local variables:
|
* Local variables:
|
||||||
* tab-width: 4
|
* tab-width: 4
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue