Bug 1431295 - Drop 'undef None' macro in dom/. r?baku draft
authorHiroyuki Ikezoe <hikezoe@mozilla.com>
Thu, 18 Jan 2018 14:12:51 +0900
changeset 721929 f4b1f4849edc117bcf0d334487339b747bf2c4bd
parent 721928 76d4bf9ace7e2457739a4e53ec8b48f749bfaa81
child 746485 e8e35ac745049d9f4b1eda26cc337a3fddc09be9
push id96002
push userbmo:hikezoe@mozilla.com
push dateThu, 18 Jan 2018 05:13:26 +0000
reviewersbaku
bugs1431295
milestone59.0a1
Bug 1431295 - Drop 'undef None' macro in dom/. r?baku MozReview-Commit-ID: Fmd4A2c7yUu
dom/clients/manager/ClientIPCUtils.h
dom/fetch/FetchIPCTypes.h
--- a/dom/clients/manager/ClientIPCUtils.h
+++ b/dom/clients/manager/ClientIPCUtils.h
@@ -3,19 +3,16 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * 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/. */
 #ifndef _mozilla_dom_ClientIPCUtils_h
 #define _mozilla_dom_ClientIPCUtils_h
 
 #include "ipc/IPCMessageUtils.h"
 
-// Fix X11 header brain damage that conflicts with FrameType::None
-#undef None
-
 #include "mozilla/dom/ClientBinding.h"
 #include "mozilla/dom/ClientsBinding.h"
 #include "mozilla/dom/DocumentBinding.h"
 #include "nsContentUtils.h"
 
 namespace IPC {
   template<>
   struct ParamTraits<mozilla::dom::ClientType> :
--- a/dom/fetch/FetchIPCTypes.h
+++ b/dom/fetch/FetchIPCTypes.h
@@ -4,19 +4,16 @@
  * 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/. */
 
 #ifndef mozilla_dom_fetch_IPCUtils_h
 #define mozilla_dom_fetch_IPCUtils_h
 
 #include "ipc/IPCMessageUtils.h"
 
-// Fix X11 header brain damage that conflicts with HeadersGuardEnum::None
-#undef None
-
 #include "mozilla/dom/HeadersBinding.h"
 #include "mozilla/dom/RequestBinding.h"
 #include "mozilla/dom/ResponseBinding.h"
 
 namespace IPC {
   template<>
   struct ParamTraits<mozilla::dom::HeadersGuardEnum> :
     public ContiguousEnumSerializer<mozilla::dom::HeadersGuardEnum,