Bug 1345331: Include <intrin.h> at top-level before lz4.c can include it in a namespace. r=Waldo

MozReview-Commit-ID: 8CI8JgR3R1L

--HG--
extra : rebase_source : d3e60e458908fb621c3608a2a3f2e08eb739d87f
This commit is contained in:
David Major 2017-03-09 15:11:15 +13:00
Родитель cc09372649
Коммит 09f473e5a8
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -12,6 +12,15 @@
// corecrt_memory.h.
#include <string>
// Because we wrap lz4.c in an anonymous namespace, all of its #includes
// go in the anonymous namespace too. This would create conflicting
// declarations for intrinsic functions that are internally defined
// at top-level. Including intrin.h here prevents it from being included
// later within the anonymous namespace.
#ifdef _MSC_VER
#include <intrin.h>
#endif
using namespace mozilla::Compression;
namespace {