rlbox_thread_locals.cpp (740B)
1 /* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 5 6 // Load general firefox configuration of RLBox 7 #include "mozilla/rlbox/rlbox_config.h" 8 9 #define RLBOX_USE_STATIC_CALLS() rlbox_noop_sandbox_lookup_symbol 10 #include "mozilla/rlbox/rlbox_noop_sandbox.hpp" 11 12 #include "mozilla/rlbox/rlbox.hpp" 13 14 // The MingW compiler does not correctly handle static thread_local inline 15 // members. We instead TLS storage via functions. This can be removed if the 16 // MingW bug is fixed. 17 RLBOX_NOOP_SANDBOX_STATIC_VARIABLES();