]> git.ipfire.org Git - thirdparty/systemd.git/commit
macro: EDG compiler frontends doesn't support enum types 38040/head
authorLuca Boccassi <luca.boccassi@gmail.com>
Thu, 3 Jul 2025 00:23:31 +0000 (01:23 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 3 Jul 2025 00:24:17 +0000 (01:24 +0100)
commite01ca3afdb297fe879eaabd02901ad2a4b547d0c
tree1f9cac7f96fd5063cbe8958d3dae3221e398afe4
parent942cb8a7c0861245ac0c734289d6ae7840bde080
macro: EDG compiler frontends doesn't support enum types

It declares STDC_VERSION 202311L but still doesn't support this feature:

https://en.cppreference.com/w/c/compiler_support/23

The EDG frontend is used by intellisense, which is the default
engine in VSCode, so parsing is currently broken and tons of
spurious errors are shown. Skip this feature when this
compiler frontend is used.

Follow-up for 92100f14c3b054903053559ed831a1b25033046c
src/fundamental/macro-fundamental.h
src/systemd/_sd-common.h