зеркало из https://github.com/mozilla/gecko-dev.git
Bug 982761 - Fix linkage of _1 placeholder in std::bind polyfill. r=briansmith
This commit is contained in:
Родитель
fba11143f2
Коммит
e14fb8212b
|
@ -41,7 +41,8 @@ using std::placeholders::_1;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
class Placeholder1 { } _1;
|
class Placeholder1 { };
|
||||||
|
extern Placeholder1 _1;
|
||||||
|
|
||||||
template <typename V> V& ref(V& v) { return v; }
|
template <typename V> V& ref(V& v) { return v; }
|
||||||
template <typename V> const V& cref(const V& v) { return v; }
|
template <typename V> const V& cref(const V& v) { return v; }
|
||||||
|
|
|
@ -0,0 +1,28 @@
|
||||||
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||||
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
||||||
|
/* Copyright 2013 Mozilla Foundation
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _MSC_VER
|
||||||
|
|
||||||
|
#include "insanity/bind.h"
|
||||||
|
|
||||||
|
namespace insanity {
|
||||||
|
|
||||||
|
Placeholder1 _1;
|
||||||
|
|
||||||
|
} // namespace insanity
|
||||||
|
|
||||||
|
#endif // _MSC_VER
|
|
@ -5,6 +5,7 @@
|
||||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
UNIFIED_SOURCES += [
|
UNIFIED_SOURCES += [
|
||||||
|
'lib/pkixbind.cpp',
|
||||||
'lib/pkixbuild.cpp',
|
'lib/pkixbuild.cpp',
|
||||||
'lib/pkixcheck.cpp',
|
'lib/pkixcheck.cpp',
|
||||||
'lib/pkixder.cpp',
|
'lib/pkixder.cpp',
|
||||||
|
|
Загрузка…
Ссылка в новой задаче