1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 12:06:07 +08:00

Don't include emmintrin.h if SSE2 is not enabled (bug 3765, r=dvander).

This commit is contained in:
David Anderson
2010-12-12 18:44:36 -08:00
parent 96346fe374
commit 642643e29c

View File

@ -30,9 +30,13 @@
#include <stdlib.h>
// For MMX intrinsics
#include <emmintrin.h>
#ifdef _LINUX
#ifdef __SSE2__ // Recent versions of emmintrin.h error out with SSE2 disabled.
#include <emmintrin.h>
#endif
#include <xmmintrin.h>
#else
#include <emmintrin.h>
#endif
#include "tier0/dbg.h"