1 //===- libstdc++14-workaround.h ---------------------------------*- C++ -*-===// 2 // 3 // This source file is part of the Swift.org open source project 4 // 5 // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors 6 // Licensed under Apache License v2.0 with Runtime Library Exception 7 // 8 // See http://swift.org/LICENSE.txt for license information 9 // See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 // 11 //===----------------------------------------------------------------------===// 12 13 #if defined(__cplusplus) 14 15 /* Workaround broken libstdc++ issue with C++14, see: 16 * https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51785 17 * 18 * We work around this by forcing basically everything to include libstdc++'s config. 19 */ 20 #include <initializer_list> 21 #undef _GLIBCXX_HAVE_GETS 22 23 #endif 24