Skip to content

Remove WINDOWS symbol from ext/ldap/ldap.c #14468

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

petk
Copy link
Member

@petk petk commented Jun 4, 2024

The WINDOWS symbol was used up to commit
f79688e where it got undefined when condition #if WIN32|WINNT was met. Then the condition was replaced with simpler PHP_WIN32 (which today implies also 64-bit platforms) and WINDOWS is undefined in this file when targeting Windows platform. Conditions otherwise also work on Windows anyway because of the LDAP_API_VERSION check.

The WINDOWS symbol was used up to commit
f79688e where it got undefined when
condition `#if WIN32|WINNT` was met. Then the condition was replaced
with simpler PHP_WIN32 (which today implies also 64-bit platforms) and
WINDOWS is undefined in this file when targeting Windows platform.
Conditions otherwise also work on Windows anyway because of the
LDAP_API_VERSION check.
@petk petk merged commit 271f911 into php:master Jun 7, 2024
11 checks passed
@petk petk deleted the patch-ext-ldap-ldap-c branch June 7, 2024 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants