1 diff --git a/dom/base/nsTextFragment.cpp b/dom/base/nsTextFragment.cpp
2 --- a/dom/base/nsTextFragment.cpp
3 +++ b/dom/base/nsTextFragment.cpp
9 #if defined(MOZILLA_MAY_SUPPORT_SSE2)
10 -# include "nsTextFragmentGeneric.h"
11 +# include "nsTextFragmentGenericFwd.h"
17 diff --git a/dom/base/nsTextFragmentGeneric.h b/dom/base/nsTextFragmentGeneric.h
18 --- a/dom/base/nsTextFragmentGeneric.h
19 +++ b/dom/base/nsTextFragmentGeneric.h
21 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
22 /* This Source Code Form is subject to the terms of the Mozilla Public
23 * License, v. 2.0. If a copy of the MPL was not distributed with this
24 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
26 +#ifndef nsTextFragmentGeneric_h__
27 +#define nsTextFragmentGeneric_h__
29 +#include "nsTextFragmentGenericFwd.h"
32 #include "nsTextFragmentImpl.h"
34 -#include <xsimd/xsimd.hpp>
39 int32_t FirstNon8Bit(const char16_t* str, const char16_t* end) {
45 } // namespace mozilla
48 diff --git a/dom/base/nsTextFragmentGenericFwd.h b/dom/base/nsTextFragmentGenericFwd.h
51 +++ b/dom/base/nsTextFragmentGenericFwd.h
53 +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
54 +/* vim: set ts=8 sts=2 et sw=2 tw=80: */
55 +/* This Source Code Form is subject to the terms of the Mozilla Public
56 + * License, v. 2.0. If a copy of the MPL was not distributed with this
57 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
59 +#ifndef nsTextFragmentGenericFwd_h__
60 +#define nsTextFragmentGenericFwd_h__
64 +#include <xsimd/xsimd.hpp>
68 +template <class Arch>
69 +int32_t FirstNon8Bit(const char16_t* str, const char16_t* end);
71 +} // namespace mozilla