]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Move _Atomic() into <sys/cdefs.h>.
authored <ed@FreeBSD.org>
Sun, 16 Jun 2013 10:48:47 +0000 (10:48 +0000)
committered <ed@FreeBSD.org>
Sun, 16 Jun 2013 10:48:47 +0000 (10:48 +0000)
commit6ee0e40b486d34550e3a4704231af7ec666772f2
tree435b9cdef7cccaa63649aae1a10805c5773635bd
parent99f22b551f1de22d4f5967a2fc5307f25cc930dd
Move _Atomic() into <sys/cdefs.h>.

That way _Atomic() is defined next to all the other C11 keywords for
which we provide compatibility for pre-C11 compilers. While there, fix
the definition to place "volatile" at the end. Otherwise pointer types
will become "volatile T *" instead of "T * volatile".
sys/sys/cdefs.h
sys/sys/stdatomic.h