zephyr/include/posix
Peter Bigot ca6e3dcdc4 include/posix: rearrange for standard use of extern "C"
Consistently place C++ use of extern "C" after all include directives,
within the negative branch of _ASMLANGUAGE if used.

Background from issue #17997:

Declarations that use C linkage should be placed within extern "C"
so the language linkage is correct when the header is included by
a C++ compiler.

Similarly #include directives should be outside the extern "C" to
ensure the language-specific default linkage is applied to any
declarations provided by the included header.

See: https://en.cppreference.com/w/cpp/language/language_linkage
Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
2019-08-13 18:00:31 +02:00
..
arpa include/posix: rearrange for standard use of extern "C" 2019-08-13 18:00:31 +02:00
net posix: Add headers related to BSD Sockets API 2019-08-07 15:02:11 +03:00
netinet posix: Add headers related to BSD Sockets API 2019-08-07 15:02:11 +03:00
sys include/posix: rearrange for standard use of extern "C" 2019-08-13 18:00:31 +02:00
dirent.h include/posix: rearrange for standard use of extern "C" 2019-08-13 18:00:31 +02:00
mqueue.h posix: mqueue.h: Move O_CREAT and friends to fcntl.h 2019-07-25 13:50:58 -04:00
netdb.h include/posix: rearrange for standard use of extern "C" 2019-08-13 18:00:31 +02:00
posix_sched.h posix: rename priority in sched_param struct 2019-02-19 11:24:45 -05:00
posix_types.h include/posix: rearrange for standard use of extern "C" 2019-08-13 18:00:31 +02:00
pthread.h PTHREAD_MUTEX_DEFINE(): don't store into the _k_mutex section 2019-06-04 09:24:08 -04:00
pthread_key.h include/posix: rearrange for standard use of extern "C" 2019-08-13 18:00:31 +02:00
semaphore.h include/posix: rearrange for standard use of extern "C" 2019-08-13 18:00:31 +02:00
signal.h include/posix: rearrange for standard use of extern "C" 2019-08-13 18:00:31 +02:00
time.h include/posix: rearrange for standard use of extern "C" 2019-08-13 18:00:31 +02:00
unistd.h include/posix: rearrange for standard use of extern "C" 2019-08-13 18:00:31 +02:00