Skip to content

"Export" relevant GD macros #7680

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

Closed
wants to merge 1 commit into from
Closed

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Nov 24, 2021

For parity with non Windows systems, we should AC_DEFINE these macros
so that they are defined in config.w32.h instead of directly passed to
the compiler. This allows extensions which have ext/gd as dependency
to check for these macros. E.g. ext/ps does this[1], and fails to
build on Windows, because HAVE_GD_BUNDLED isn't defined.

[1] https://github.com/steinm/ps/blob/RELEASE_1_4_4/ps.c#L34


Note that I targeted PHP-8.0 which is a compromise. Fixing this for PHP-7.4 might make sense as well, although ext/pd can't be build for that version with GD support anyway (https://bugs.php.net/81639).

For parity with non Windows systems, we should `AC_DEFINE` these macros
so that they are defined in config.w32.h instead of directly passed to
the compiler.  This allows extensions which have ext/gd as dependency
to check for these macros.  E.g. ext/ps does this[1], and fails to
build on Windows, because `HAVE_GD_BUNDLED` isn't defined.

[1] <https://github.com/steinm/ps/blob/RELEASE_1_4_4/ps.c#L34>
@cmb69 cmb69 closed this in 9237055 Nov 24, 2021
@cmb69 cmb69 deleted the cmb/gd-ac_define branch November 24, 2021 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants