mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1073709 - Disable C++11 <atomic> when using GCC with libc++. r=waldo
This commit is contained in:
parent
b6f78246ff
commit
96a0c24b2a
@ -34,10 +34,12 @@
|
|||||||
* loose typing of the atomic builtins. GCC 4.5 and 4.6 lacks inline
|
* loose typing of the atomic builtins. GCC 4.5 and 4.6 lacks inline
|
||||||
* definitions for unspecialized std::atomic and causes linking errors.
|
* definitions for unspecialized std::atomic and causes linking errors.
|
||||||
* Therefore, we require at least 4.7.0 for using libstdc++.
|
* Therefore, we require at least 4.7.0 for using libstdc++.
|
||||||
|
*
|
||||||
|
* libc++ <atomic> is only functional with clang.
|
||||||
*/
|
*/
|
||||||
# if MOZ_USING_LIBSTDCXX && MOZ_LIBSTDCXX_VERSION_AT_LEAST(4, 7, 0)
|
# if MOZ_USING_LIBSTDCXX && MOZ_LIBSTDCXX_VERSION_AT_LEAST(4, 7, 0)
|
||||||
# define MOZ_HAVE_CXX11_ATOMICS
|
# define MOZ_HAVE_CXX11_ATOMICS
|
||||||
# elif MOZ_USING_LIBCXX
|
# elif MOZ_USING_LIBCXX && defined(__clang__)
|
||||||
# define MOZ_HAVE_CXX11_ATOMICS
|
# define MOZ_HAVE_CXX11_ATOMICS
|
||||||
# endif
|
# endif
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user