thelilylang / lily

The Lily programming language ⚜
MIT License
9 stars 2 forks source link

Make the warning preprocessor valid in all standards #603

Closed ArthurPV closed 1 week ago

ArthurPV commented 1 week ago

You can probably see an example of the #warning preprocessor in all standards in the include /usr/include/features.h:

// ...
#if (defined _BSD_SOURCE || defined _SVID_SOURCE) \
    && !defined _DEFAULT_SOURCE
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
# undef  _DEFAULT_SOURCE
# define _DEFAULT_SOURCE    1
#endif
// ...