Skip to content

Commit

Permalink
Bug 1426898 - Stop including Char16.h everywhere. r=Waldo
Browse files Browse the repository at this point in the history
We had to force-include Char16.h to simulate char16_t on older MSVC versions.
But it is no longer the case. We should not rebuild the world whenever we
touch this file.

MozReview-Commit-ID: 1XY7tQD8LoK

--HG--
extra : rebase_source : a08ccfc9b6a4abf90f6f8b97a42079865724c9ec
  • Loading branch information
vyv03354 committed Dec 22, 2017
1 parent 89dad26 commit a1d349b
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 12 deletions.
1 change: 1 addition & 0 deletions ipc/glue/FileDescriptor.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#ifdef XP_WIN
// Need the HANDLE typedef.
#include <winnt.h>
#include <cstdint>
#else
#include "base/file_descriptor_posix.h"
#endif
Expand Down
1 change: 1 addition & 0 deletions media/gmp-clearkey/0.1/WMFUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <mfobjects.h>
#include <mftransform.h>
#include <wmcodecdsp.h>
#include "mozilla/Attributes.h"
#include "VideoLimits.h"

#include "gmp-platform.h"
Expand Down
10 changes: 0 additions & 10 deletions mozilla-config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,6 @@
#pragma clang diagnostic pop
#endif

/*
* Force-include Char16.h in order to define PRUnichar as char16_t everywhere.
* Note that this should be the first #include to make sure that prtypes.h does
* not attempt to define PRUnichar. This includes the following hunspell-specific
* includes.
*/
#if !defined(__ASSEMBLER__)
#include "mozilla/Char16.h"
#endif

/*
* Force-include hunspell_alloc_hooks.h and hunspell_fopen_hooks.h for hunspell,
* so that we don't need to modify them directly.
Expand Down
1 change: 1 addition & 0 deletions toolkit/xre/nsWindowsWMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#error This file only makes sense on Windows.
#endif

#include "mozilla/Char16.h"
#include "nsUTF8Utils.h"
#include <intrin.h>
#include <math.h>
Expand Down
1 change: 1 addition & 0 deletions xpcom/base/nsVersionComparator.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#ifndef nsVersionComparator_h__
#define nsVersionComparator_h__

#include "mozilla/Char16.h"
#include "nscore.h"
#include <stdlib.h>
#include <string.h>
Expand Down
2 changes: 0 additions & 2 deletions xpcom/string/nsCharTraits.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
#include <ctype.h> // for |EOF|, |WEOF|
#include <string.h> // for |memcpy|, et al

#include "nscore.h" // for |char16_t|

// This file may be used (through nsUTF8Utils.h) from non-XPCOM code, in
// particular the standalone software updater. In that case stub out
// the macros provided by nsDebug.h which are only usable when linking XPCOM
Expand Down
2 changes: 2 additions & 0 deletions xpcom/string/nsTDependentSubstring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "nsTDependentSubstring.h"

template <typename T>
void
nsTDependentSubstring<T>::Rebind(const substring_type& str,
Expand Down
1 change: 1 addition & 0 deletions xpcom/string/nsTStringRepr.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#include <type_traits> // std::enable_if

#include "mozilla/Char16.h"
#include "nsStringFlags.h"
#include "nsCharTraits.h"

Expand Down

0 comments on commit a1d349b

Please sign in to comment.