In order to keep the scitokens.h header backwards compatible with older versions of C/C++ while still providing support for compiler warnings when a deprecated function is used, I set up a macro wrapper that checks for compiler support of the attribute and throws a warning when a deprecated function is used.
I was aiming for broad compiler compatibility. Let me know if there's anything I can change.
In order to keep the
scitokens.h
header backwards compatible with older versions of C/C++ while still providing support for compiler warnings when a deprecated function is used, I set up a macro wrapper that checks for compiler support of the attribute and throws a warning when a deprecated function is used.I was aiming for broad compiler compatibility. Let me know if there's anything I can change.