Use standard C23 and C++ attributes if available

Use standard C23 and C++ attributes if available

Edit