Define RX_WINDOWS based on PHP_OS_FAMILY

This commit is contained in:
Kijin Sung 2024-11-17 22:18:38 +09:00
parent b3a311488b
commit 7ffb1c50fc

View file

@ -125,7 +125,7 @@ else
/**
* RX_WINDOWS is true if the operating system is Windows.
*/
define('RX_WINDOWS', strncasecmp(PHP_OS, 'WIN', 3) === 0);
define('RX_WINDOWS', PHP_OS_FAMILY === 'Windows');
/**
* XE core compatibility constants (may be used by XE-compatible plugins and themes).