Bug 926083 - Only #include Compiler.h in NullPtr.h if needed; r=froydnj

This commit is contained in:
Ehsan Akhgari 2013-10-15 17:13:39 -04:00
parent 2699ca9abf
commit d6529bb5d1

View File

@ -12,8 +12,6 @@
#ifndef mozilla_NullPtr_h
#define mozilla_NullPtr_h
#include "mozilla/Compiler.h"
#if defined(__clang__)
# ifndef __has_extension
# define __has_extension __has_feature
@ -23,6 +21,7 @@
# endif
#elif defined(__GNUC__)
# if defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103L
# include "mozilla/Compiler.h"
# if MOZ_GCC_VERSION_AT_LEAST(4, 6, 0)
# define MOZ_HAVE_CXX11_NULLPTR
# endif