From 0c3c903c1b90d9b4c0c84d510b90a07bd61255cb Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Fri, 14 Feb 2020 16:07:34 +0900 Subject: [PATCH] Add RX_WINDOWS constant --- common/constants.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/constants.php b/common/constants.php index bb9b12254..c818f27ff 100644 --- a/common/constants.php +++ b/common/constants.php @@ -117,6 +117,11 @@ else define('RX_POST', false); } +/** + * RX_WINDOWS is true if the operating system is Windows. + */ +define('RX_WINDOWS', strncasecmp(PHP_OS, 'WIN', 3) === 0); + /** * XE core compatibility constants (may be used by XE-compatible plugins and themes). */