Skip to content

Commit 2439661

Browse files
committed
Use the standard _WIN32 instead of the custom MSWIN32 in libgd
We're already checking `_WIN32` elsewhere in our bundled libgd, so it makes no sense to also have a custom `MSWIN32`. Closes GH-7682.
1 parent 7738d8d commit 2439661

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

ext/gd/config.w32

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ if (PHP_GD != "no") {
6969
/D HAVE_LIBPNG \
7070
/D HAVE_XPM \
7171
/D HAVE_GD_GET_INTERPOLATION \
72-
/D MSWIN32 \
7372
");
7473
if (ICC_TOOLSET) {
7574
ADD_FLAG("LDFLAGS_GD", "/nodefaultlib:libcmt");

ext/gd/libgd/gdft.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include "gd.h"
1313
#include "gdhelpers.h"
1414

15-
#ifndef MSWIN32
15+
#ifndef _WIN32
1616
#include <unistd.h>
1717
#else
1818
#include <io.h>

0 commit comments

Comments
 (0)