Skip to content

Commit 9bf43c4

Browse files
committed
rename COMPILER and ARCHITECTURE macro (too generic)
1 parent b30462b commit 9bf43c4

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,10 +1283,10 @@ if test -n "${PHP_BUILD_PROVIDER}"; then
12831283
AC_DEFINE_UNQUOTED(PHP_BUILD_PROVIDER,"$PHP_BUILD_PROVIDER",[build provider])
12841284
fi
12851285
if test -n "${PHP_BUILD_COMPILER}"; then
1286-
AC_DEFINE_UNQUOTED(COMPILER,"$PHP_BUILD_COMPILER",[used compiler for build])
1286+
AC_DEFINE_UNQUOTED(PHP_BUILD_COMPILER,"$PHP_BUILD_COMPILER",[used compiler for build])
12871287
fi
12881288
if test -n "${PHP_BUILD_ARCH}"; then
1289-
AC_DEFINE_UNQUOTED(ARCHITECTURE,"$PHP_BUILD_ARCH",[build architecture])
1289+
AC_DEFINE_UNQUOTED(PHP_BUILD_ARCH,"$PHP_BUILD_ARCH",[build architecture])
12901290
fi
12911291

12921292
PHP_SUBST_OLD(PHP_INSTALLED_SAPIS)

ext/standard/info.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -798,11 +798,11 @@ PHPAPI ZEND_COLD void php_print_info(int flag)
798798
#ifdef PHP_BUILD_PROVIDER
799799
php_info_print_table_row(2, "Build Provider", PHP_BUILD_PROVIDER);
800800
#endif
801-
#ifdef COMPILER
802-
php_info_print_table_row(2, "Compiler", COMPILER);
801+
#ifdef PHP_BUILD_COMPILER
802+
php_info_print_table_row(2, "Compiler", PHP_BUILD_COMPILER);
803803
#endif
804-
#ifdef ARCHITECTURE
805-
php_info_print_table_row(2, "Architecture", ARCHITECTURE);
804+
#ifdef PHP_BUILD_ARCH
805+
php_info_print_table_row(2, "Architecture", PHP_BUILD_ARCH);
806806
#endif
807807
#ifdef CONFIGURE_COMMAND
808808
php_info_print_table_row(2, "Configure Command", CONFIGURE_COMMAND );

sapi/cli/php_cli.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -645,12 +645,12 @@ static int do_cli(int argc, char **argv) /* {{{ */
645645
#else
646646
"NTS "
647647
#endif
648-
#ifdef COMPILER
649-
COMPILER
648+
#ifdef PHP_BUILD_COMPILER
649+
PHP_BUILD_COMPILER
650650
" "
651651
#endif
652-
#ifdef ARCHITECTURE
653-
ARCHITECTURE
652+
#ifdef PHP_BUILD_ARCH
653+
PHP_BUILD_ARCH
654654
" "
655655
#endif
656656
#if ZEND_DEBUG

win32/build/confutils.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2944,25 +2944,25 @@ function toolset_setup_compiler()
29442944

29452945
WARNING("Using unknown MSVC version " + tmp);
29462946

2947-
AC_DEFINE('COMPILER', COMPILER_NAME_LONG, "Detected compiler version");
2947+
AC_DEFINE('PHP_BUILD_COMPILER', COMPILER_NAME_LONG, "Detected compiler version");
29482948
DEFINE("PHP_COMPILER_SHORT", tmp);
29492949
AC_DEFINE('PHP_COMPILER_ID', tmp, "Compiler compatibility ID");
29502950
} else {
2951-
AC_DEFINE('COMPILER', COMPILER_NAME_LONG, "Detected compiler version");
2951+
AC_DEFINE('PHP_BUILD_COMPILER', COMPILER_NAME_LONG, "Detected compiler version");
29522952
DEFINE("PHP_COMPILER_SHORT", COMPILER_NAME_SHORT.toLowerCase());
29532953
AC_DEFINE('PHP_COMPILER_ID', COMPILER_NAME_SHORT.toUpperCase(), "Compiler compatibility ID");
29542954
}
29552955
} else if (CLANG_TOOLSET) {
29562956
CLANGVERS = COMPILER_NUMERIC_VERSION;
29572957

2958-
AC_DEFINE('COMPILER', COMPILER_NAME_LONG, "Detected compiler version");
2958+
AC_DEFINE('PHP_BUILD_COMPILER', COMPILER_NAME_LONG, "Detected compiler version");
29592959
DEFINE("PHP_COMPILER_SHORT", "clang");
29602960
AC_DEFINE('PHP_COMPILER_ID', "clang"); /* XXX something better were to write here */
29612961

29622962
} else if (ICC_TOOLSET) {
29632963
INTELVERS = COMPILER_NUMERIC_VERSION;
29642964

2965-
AC_DEFINE('COMPILER', COMPILER_NAME_LONG, "Detected compiler version");
2965+
AC_DEFINE('PHP_BUILD_COMPILER', COMPILER_NAME_LONG, "Detected compiler version");
29662966
DEFINE("PHP_COMPILER_SHORT", "icc");
29672967
AC_DEFINE('PHP_COMPILER_ID', "icc"); /* XXX something better were to write here */
29682968
}
@@ -3162,7 +3162,7 @@ function toolset_setup_arch()
31623162
} else {
31633163
STDOUT.WriteLine(" Detected 32-bit compiler");
31643164
}
3165-
AC_DEFINE('ARCHITECTURE', X64 ? 'x64' : 'x86', "Detected compiler architecture");
3165+
AC_DEFINE('PHP_BUILD_ARCH', X64 ? 'x64' : 'x86', "Detected compiler architecture");
31663166
DEFINE("PHP_ARCHITECTURE", X64 ? 'x64' : 'x86');
31673167
}
31683168

0 commit comments

Comments
 (0)