Bug 961222 - fix documentation and indentation in Compiler.h; r=Waldo

This commit is contained in:
Nathan Froyd 2014-01-17 16:25:30 -05:00
parent 771ff6dc82
commit 54ee4b8229

View File

@ -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