]> git.ipfire.org Git - thirdparty/systemd.git/commit
Fix 24172: __STDC_VERSION__ may be defined in C++
authorLoïc Collignon <ctxnop@gmail.com>
Wed, 3 Aug 2022 09:42:28 +0000 (11:42 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 3 Aug 2022 13:41:07 +0000 (15:41 +0200)
commit00852912edc69e652f4932fa536da60528f08ed3
tree2f146ada3c6ca096b6308b15a74b4896fd03d091
parent2d2efed2eeebad6860e9fa4880d02286175dcffa
Fix 24172: __STDC_VERSION__ may be defined in C++

According to the C++ ISO standard, a conformant compiler is allowed to
define this macro to any value for any reason as it is implementation
defined: https://timsong-cpp.github.io/cppwp/cpp.predefined#2.3

This mean that it cannot be assumed that it is not defined in a C++.
Change the condition to reflect that.
src/systemd/_sd-common.h