Bug 1393808 Include immintrin.h under MinGW for _mm_pause() draft
authorTom Ritter <tom@mozilla.com>
Fri, 25 Aug 2017 11:55:57 -0500
changeset 653210 e0be5972f4209d788afb7d8d990f63c0abca6b1e
parent 653201 ae031b72be14895bda24b0a1d9bb06f42319d338
child 653211 155836e953aa8a55b6b04ba89e34656d1c9a6dd4
push id76258
push userbmo:tom@mozilla.com
push dateFri, 25 Aug 2017 17:41:06 +0000
bugs1393808
milestone57.0a1
Bug 1393808 Include immintrin.h under MinGW for _mm_pause() MozReview-Commit-ID: H8dxhqk4Uai
tools/profiler/core/platform-win32.cpp
--- 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();