Skip to content

Commit bae668e

Browse files
committed
add missing include guards
1 parent a567000 commit bae668e

File tree

7 files changed

+34
-0
lines changed

7 files changed

+34
-0
lines changed

win32/grp.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,18 @@
1818

1919
/* $Id$ */
2020

21+
#ifndef PHP_WIN32_GRP_H
22+
#define PHP_WIN32_GRP_H
23+
2124
struct group {
2225
char *gr_name;
2326
char *gr_passwd;
2427
int gr_gid;
2528
char **gr_mem;
2629
};
2730

31+
#endif
32+
2833
/*
2934
* Local variables:
3035
* tab-width: 4

win32/inet.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,16 @@
1616
+----------------------------------------------------------------------+
1717
*/
1818

19+
#ifndef PHP_WIN32_INET_H
20+
#define PHP_WIN32_INET_H
1921

2022
#include <php.h>
2123
#include <Winsock2.h>
2224

2325
PHPAPI int inet_aton(const char *cp, struct in_addr *inp);
2426

27+
#endif
28+
2529
/*
2630
* Local variables:
2731
* tab-width: 4

win32/param.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
* Copyright 1994 The Downhill Project *
99
* *
1010
*****************************************************************************/
11+
#ifndef PHP_WIN32_PARAM_H
12+
#define PHP_WIN32_PARAM_H
13+
1114
#ifndef MAXPATHLEN
1215
#include "win32/ioutil.h"
1316
#define MAXPATHLEN PHP_WIN32_IOUTIL_MAXPATHLEN
@@ -16,6 +19,8 @@
1619
#define howmany(x,y) (((x)+((y)-1))/(y))
1720
#define roundup(x,y) ((((x)+((y)-1))/(y))*(y))
1821

22+
#endif
23+
1924
/*
2025
* Local variables:
2126
* tab-width: 4

win32/resource.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
// Used by php7dllts.rc
44
//
55

6+
#ifndef PHP_WIN32_RESOURCE_H
7+
#define PHP_WIN32_RESOURCE_H
8+
69
// Next default values for new objects
710
//
811
#ifdef APSTUDIO_INVOKED
@@ -14,6 +17,8 @@
1417
#endif
1518
#endif
1619

20+
#endif
21+
1722
/*
1823
* Local variables:
1924
* tab-width: 4

win32/select.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,15 @@
1818

1919
/* $Id$ */
2020

21+
#ifndef PHP_WIN32_SELECT_H
22+
#define PHP_WIN32_SELECT_H
23+
2124
#include "php_network.h"
2225

2326
PHPAPI int php_select(php_socket_t max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *tv);
2427

28+
#endif
29+
2530
/*
2631
* Local variables:
2732
* tab-width: 4

win32/sockets.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,13 @@
2323

2424
/* Code originally from ext/sockets */
2525

26+
#ifndef PHP_WIN32_SOCKETS_H
27+
#define PHP_WIN32_SOCKETS_H
28+
2629
PHPAPI int socketpair(int domain, int type, int protocol, SOCKET sock[2]);
2730

31+
#endif
32+
2833
/*
2934
* Local variables:
3035
* tab-width: 4

win32/winutil.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
+----------------------------------------------------------------------+
1717
*/
1818

19+
#ifndef PHP_WIN32_WINUTIL_H
20+
#define PHP_WIN32_WINUTIL_H
21+
1922
#ifdef PHP_EXPORTS
2023
# define PHP_WINUTIL_API __declspec(dllexport)
2124
#else
@@ -50,6 +53,8 @@ PHP_WINUTIL_API int php_win32_code_to_errno(unsigned long w32Err);
5053

5154
PHP_WINUTIL_API char *php_win32_get_username(void);
5255

56+
#endif
57+
5358
/*
5459
* Local variables:
5560
* tab-width: 4

0 commit comments

Comments
 (0)