Use MR_GNUC in place of __GNUC__ in some spots.

Branches: main, 11.07

runtime/mercury_string.h:
runtime/mercury_types.h:
	Use MR_GNUC in place of __GNUC__ in some spots.
This commit is contained in:
Julien Fischer
2011-08-02 08:28:19 +00:00
parent b3b155be92
commit 6db56dea42
2 changed files with 3 additions and 2 deletions

View File

@@ -253,7 +253,7 @@ MR_Integer MR_hash_string(MR_ConstString);
MR_Integer MR_hash_string2(MR_ConstString);
MR_Integer MR_hash_string3(MR_ConstString);
#ifdef __GNUC__
#if defined(MR_GNUC)
#define MR_hash_string(s) \
({ \
MR_Integer hash_string_result; \

View File

@@ -42,8 +42,9 @@
#if __STDC_VERSION__ >= 199901 /* January 1999 */
/* Use C9X-style variable-length arrays. */
#define MR_VARIABLE_SIZED /* nothing */
#elif defined(__GNUC__)
#elif defined(MR_GNUC)
/* Use GNU-style variable-length arrays */
/* Note: clang does *not* support these. */
#define MR_VARIABLE_SIZED 0
#else
/* Just fake it by pretending that the array has a fixed size */