RTEMS | confdefs.h fails to compile when included in C++20 source (#5145)
Sebastian Huber (@sebhub)
gitlab at rtems.org
Thu Nov 7 02:30:59 UTC 2024
Sebastian Huber commented on a discussion: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5145#note_114449
I would use the existing tests for atomic operations and include them in a C and C++ file. Something like
```
#include "test-case-for-c-and-cc.inc"
```
in test.c and test.cc should work.
For the layout checks, you define objects in C and C++ files and save the size, offsets, alignments in a structure which is checked.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5145#note_114449
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20241107/35562136/attachment.htm>
More information about the bugs
mailing list