Bug 1393808 Include immintrin.h under MinGW for _mm_pause()
MozReview-Commit-ID: H8dxhqk4Uai
--- a/tools/profiler/core/platform-win32.cpp
+++ b/tools/profiler/core/platform-win32.cpp
@@ -27,16 +27,20 @@
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
// OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
#include <windows.h>
#include <mmsystem.h>
#include <process.h>
+#ifdef __MINGW32__
+#include <immintrin.h> // for _mm_pause
+#endif
+
#include "nsWindowsDllInterceptor.h"
#include "mozilla/StackWalk_windows.h"
#include "mozilla/WindowsVersion.h"
/* static */ Thread::tid_t
Thread::GetCurrentId()
{
return GetCurrentThreadId();