mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-22 12:04:38 +00:00
Bug 961222 - fix documentation and indentation in Compiler.h; r=Waldo
This commit is contained in:
parent
19a0624476
commit
44baa18781
@ -11,21 +11,21 @@
|
||||
|
||||
#if !defined(__clang__) && defined(__GNUC__)
|
||||
|
||||
#define MOZ_IS_GCC 1
|
||||
# define MOZ_IS_GCC 1
|
||||
/*
|
||||
* This macro should simplify gcc version checking. For example, to check
|
||||
* for gcc 4.5.1 or later, check `#ifdef MOZ_GCC_VERSION_AT_LEAST(4, 5, 1)`.
|
||||
* for gcc 4.5.1 or later, check `#if MOZ_GCC_VERSION_AT_LEAST(4, 5, 1)`.
|
||||
*/
|
||||
# define MOZ_GCC_VERSION_AT_LEAST(major, minor, patchlevel) \
|
||||
((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) \
|
||||
>= ((major) * 10000 + (minor) * 100 + (patchlevel)))
|
||||
#if !MOZ_GCC_VERSION_AT_LEAST(4, 4, 0)
|
||||
# error "mfbt (and Gecko) require at least gcc 4.4 to build."
|
||||
#endif
|
||||
# if !MOZ_GCC_VERSION_AT_LEAST(4, 4, 0)
|
||||
# error "mfbt (and Gecko) require at least gcc 4.4 to build."
|
||||
# endif
|
||||
|
||||
#else
|
||||
|
||||
#define MOZ_IS_GCC 0
|
||||
# define MOZ_IS_GCC 0
|
||||
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user