Skip to content

Commit

Permalink
Set C17 standard for MSVC
Browse files Browse the repository at this point in the history
Maybe this will fix Windows issues
  • Loading branch information
Girgias committed Jun 10, 2024
1 parent cbb5bc0 commit be16767
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions win32/build/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ if (PHP_DEBUG == "yes" && PHP_DEBUG_PACK == "yes") {
ERROR("Use of both --enable-debug and --enable-debug-pack not allowed.");
}

// Set C17 standard
ADD_FLAG("CFLAGS"," /std:c17 ");
if (PHP_DEBUG == "yes") {
ADD_FLAG("CFLAGS"," /Wall ");
ADD_FLAG("LDFLAGS", " /verbose ");
Expand Down

0 comments on commit be16767

Please sign in to comment.