Skip to content

Commit fb77309

Browse files
authored
Apply suggestions from code review
Co-authored-by: Marc <m@pyc.ac>
1 parent 4d2036f commit fb77309

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/SPC/builder/extension/xlswriter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function patchBeforeMake(): bool
3030
{
3131
$patched = parent::patchBeforeMake();
3232

33-
// Bundled minizip uses K&R C function declarations rejected by C23 (default on macOS with Xcode 16+)
33+
// Remove when https://github.com/viest/php-ext-xlswriter/pull/560 is merged
3434
if (PHP_OS_FAMILY !== 'Windows') {
3535
GlobalEnvManager::putenv('SPC_CMD_VAR_PHP_MAKE_EXTRA_CFLAGS=' . getenv('SPC_CMD_VAR_PHP_MAKE_EXTRA_CFLAGS') . ' -std=gnu17');
3636
$patched = true;
@@ -49,6 +49,7 @@ public function patchBeforeMake(): bool
4949
return $patched;
5050
}
5151

52+
// Remove when https://github.com/viest/php-ext-xlswriter/pull/560 is merged
5253
protected function getExtraEnv(): array
5354
{
5455
return ['CFLAGS' => '-std=gnu17'];

0 commit comments

Comments
 (0)