Skip to content

Commit 60ccb47

Browse files
committed
Add HAVE_GLOB for Windows
PHP has custom glob() implemented on Windows up to PHP 8.4. In PHP 8.5 a platform-agnostic implementation was added and system glob() isn't required anymore.
1 parent a414a5a commit 60ccb47

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/cmake/platforms/Windows.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
3131
# PHP defines getpid as _getpid on Windows.
3232
set(HAVE_GETPID TRUE)
3333

34+
# PHP has custom glob() implemented on Windows.
35+
set(HAVE_GLOB TRUE)
36+
3437
# PHP has custom nanosleep for Windows platform.
3538
set(HAVE_NANOSLEEP TRUE)
3639

0 commit comments

Comments
 (0)