Files
palemoon27/config/gcc-stl-wrapper.template.h
T
roytam1 95440d2f99 import changes from `dev' branch of rmottola/Arctic-Fox:
- Bug 1166847 followup: Add 'override' annotation to some new overriding methods in jswrapper.h. rs=ehsan (20a3e9857)
- pointer style (b13f08224)
- Bug 1201271 - Warn about unused results for more methods of nsTArray. r=froydnj (c8fa9e836)
- Bug 1156398: Pass ProcessOrientation.cpp's unused-by-default bools to mozilla::unused. r=mwu (e1200be54)
- Bug 1159124 - Suppress -Wunused-exception-parameter warning in nsClipboard.mm. r=spohl (dc3c4c4d0)
- Bug 1152921 - Always initialize platform-specific booleans in PrintData before sending over IPC. r=mconley (45fb8cf07)
- Bug 1091112 - Serialize nsIPrintSettings options bitfield. r=jimm (17d38b152)
- Bug 1091112 - Add OS X-specific members to PrintData IPDL struct. r=jimm (62182eb24)
- Bug 1091112 - Proxy opening the print dialog on OS X to the parent. r=mstange (adf38a12a)
- Bug 1204398 - Fix -Wshadow warnings in widget/cocoa. r=spohl (9c4f43861)
- missing bits of Bug 1193038: Purposely leak StatisticsReport object and suppress the leak report r=glandium,mccr8,njn (cc0c1a908)
- Bug 1144580 - Whitelist pselect6 in content seccomp-bpf policy. r=kang (144c67d00)
- Bug 1144514 - Whitelist pread64 in content seccomp-bpf policy. r=kang (c01f7f65c)
- Bug 1055310 - Step 1: Convert seccomp-bpf policies to Chromium PolicyCompiler. r=kang (8fbf648ba)
- Bug 1055310 - Step 2: Move SIGSYS handling to Chromium TrapRegistry. r=kang (e80ff13a6)
- Bug 1055310 - Step 3: Move syscall interceptions into SandboxFilter.cpp. r=kang (59c0b2454)
- Bug 1004011 - Support SECCOMP_FILTER_FLAG_TSYNC if available. r=kang (cf97070a9)
- Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium. (c9df97498)
- Bug 1189125 - Allow xpcshell to use GTK (r=karlt) (e363a27aa)
- Bug 830801 - Part 1. Set NOMINMAX define as default. r=mshal (88fa52e9e)
- Bug 830801 - Part 3. Remove NOMINMAX define from cpp source. r=mshal (c841b399f)
- Bug 1169433 - Remove UnicharSelfTest and turn NormalizationTest into a gtest. r=glandium,smontagu (625dcaf32)
- Bug 1170072 - Part 1. Make GetCharProps1 as static function. r=jfkthame (6ab8b7c4f)
- Bug 1183209 patch 2: update data generation tools to Unicode 8, r=jfkthame (78e91de20)
- Bug 1183209 patch 3: update generated data files to Unicode 8, and adapt internal XIDMOD types to the new types in Unicode's xidmodifications.txt, r=jfkthame (c9fea054f)
2021-11-08 11:28:02 +08:00

72 lines
2.6 KiB
C

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* vim: sw=2 ts=8 et :
*/
/* 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_${HEADER}_h
#define mozilla_${HEADER}_h
// For some reason, Apple's GCC refuses to honor -fno-exceptions when
// compiling ObjC.
#if defined(__EXCEPTIONS) && __EXCEPTIONS && !(__OBJC__ && __GNUC__ && XP_IOS)
# error "STL code can only be used with -fno-exceptions"
#endif
// Silence "warning: #include_next is a GCC extension"
#pragma GCC system_header
// Don't include mozalloc for cstdlib. See bug 1245076.
#ifndef moz_dont_include_mozalloc_for_cstdlib
# define moz_dont_include_mozalloc_for_cstdlib
#endif
#ifndef moz_dont_include_mozalloc_for_${HEADER}
// mozalloc.h wants <new>; break the cycle by always explicitly
// including <new> here. NB: this is a tad sneaky. Sez the gcc docs:
//
// `#include_next' does not distinguish between <file> and "file"
// inclusion, nor does it check that the file you specify has the
// same name as the current file. It simply looks for the file
// named, starting with the directory in the search path after the
// one where the current file was found.
# include_next <new>
// See if we're in code that can use mozalloc. NB: this duplicates
// code in nscore.h because nscore.h pulls in prtypes.h, and chromium
// can't build with that being included before base/basictypes.h.
# if !defined(XPCOM_GLUE) && !defined(NS_NO_XPCOM) && !defined(MOZ_NO_MOZALLOC)
# include "mozilla/mozalloc.h"
# else
# error "STL code can only be used with infallible ::operator new()"
# endif
#endif
#if defined(DEBUG) && !defined(_GLIBCXX_DEBUG)
// Enable checked iterators and other goodies
//
// FIXME/bug 551254: gcc's debug STL implementation requires -frtti.
// Figure out how to resolve this with -fno-rtti. Maybe build with
// -frtti in DEBUG builds?
//
// # define _GLIBCXX_DEBUG 1
#endif
#pragma GCC visibility push(default)
#include_next <${HEADER}>
#pragma GCC visibility pop
// gcc calls a __throw_*() function from bits/functexcept.h when it
// wants to "throw an exception". functexcept exists nominally to
// support -fno-exceptions, but since we'll always use the system
// libstdc++, and it's compiled with exceptions, then in practice
// these __throw_*() functions will always throw exceptions (shades of
// -fshort-wchar). We don't want that and so define our own inlined
// __throw_*().
#ifndef mozilla_throw_gcc_h
# include "mozilla/throw_gcc.h"
#endif
#endif // if mozilla_${HEADER}_h