[libc++] Consistently guard "#pragma clang" with "#if defined(clang)".
Similarly, consistently guard "#pragma GCC" with "#if defined(GNUC)".
Fixes MSVC "warning C4068: unknown pragma".
Paths
| Differential D19618
[libc++] Consistently guard "#pragma clang" with "#if defined(__clang__)". ClosedPublic Authored by STL_MSFT on Apr 27 2016, 2:17 PM.
Details
Summary [libc++] Consistently guard "#pragma clang" with "#if defined(clang)". Similarly, consistently guard "#pragma GCC" with "#if defined(GNUC)". Fixes MSVC "warning C4068: unknown pragma".
Diff Detail Event TimelineThis revision is now accepted and ready to land.Apr 27 2016, 6:50 PM Comment Actions Committed in r267836. I must say it's pretty cool to review and commit a patch from *the* STL. Never thought that would happen when I started programming.
Revision Contents
Diff 55311 test/std/depr/depr.c.headers/stdio_h.pass.cpp
test/std/depr/depr.c.headers/wchar_h.pass.cpp
test/std/input.output/file.streams/c.files/cstdio.pass.cpp
test/std/utilities/template.bitset/bitset.cons/char_ptr_ctor.pass.cpp
test/std/utilities/template.bitset/bitset.cons/default.pass.cpp
test/std/utilities/template.bitset/bitset.cons/string_ctor.pass.cpp
test/std/utilities/template.bitset/bitset.cons/ull_ctor.pass.cpp
test/std/utilities/template.bitset/bitset.members/count.pass.cpp
test/std/utilities/template.bitset/bitset.members/flip_all.pass.cpp
test/std/utilities/template.bitset/bitset.members/flip_one.pass.cpp
test/std/utilities/template.bitset/bitset.members/index.pass.cpp
test/std/utilities/template.bitset/bitset.members/index_const.pass.cpp
test/std/utilities/template.bitset/bitset.members/left_shift.pass.cpp
test/std/utilities/template.bitset/bitset.members/left_shift_eq.pass.cpp
test/std/utilities/template.bitset/bitset.members/not_all.pass.cpp
test/std/utilities/template.bitset/bitset.members/op_and_eq.pass.cpp
test/std/utilities/template.bitset/bitset.members/op_eq_eq.pass.cpp
test/std/utilities/template.bitset/bitset.members/op_or_eq.pass.cpp
test/std/utilities/template.bitset/bitset.members/op_xor_eq.pass.cpp
test/std/utilities/template.bitset/bitset.members/reset_all.pass.cpp
test/std/utilities/template.bitset/bitset.members/reset_one.pass.cpp
test/std/utilities/template.bitset/bitset.members/right_shift.pass.cpp
test/std/utilities/template.bitset/bitset.members/right_shift_eq.pass.cpp
test/std/utilities/template.bitset/bitset.members/set_all.pass.cpp
test/std/utilities/template.bitset/bitset.members/test.pass.cpp
test/std/utilities/template.bitset/bitset.members/to_string.pass.cpp
test/std/utilities/template.bitset/bitset.operators/op_and.pass.cpp
test/std/utilities/template.bitset/bitset.operators/op_not.pass.cpp
test/std/utilities/template.bitset/bitset.operators/op_or.pass.cpp
test/support/disable_missing_braces_warning.h
|