Skip to content

Commit 566e412

Browse files
committed
Improve Win32 build performance
1 parent cc66d8a commit 566e412

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

Zend/zend_config.w32.h

+6
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,13 @@
3131
#include <crtdbg.h>
3232

3333
#include <string.h>
34+
35+
#ifndef ZEND_INCLUDE_FULL_WINDOWS_HEADERS
36+
#define WIN32_LEAN_AND_MEAN
37+
#endif
38+
#include <winsock2.h>
3439
#include <windows.h>
40+
3541
#include <float.h>
3642

3743
typedef unsigned long ulong;

Zend/zend_ini_parser.y

-7
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,6 @@
2727
#include "zend_ini_scanner.h"
2828
#include "zend_extensions.h"
2929

30-
31-
#if WIN32
32-
#define WIN32_LEAN_AND_MEAN
33-
#include <windows.h>
34-
#include <winbase.h>
35-
#endif
36-
3730
#define YYSTYPE zval
3831

3932
#ifdef ZTS

0 commit comments

Comments
 (0)