This resolves the issue I mentioned in #3101.
I added an error to mdc.h for anyone trying to include mdc if SPDLOG_NO_TLS is defined, if you prefer making the mdc:: functions no-ops or putting the class itself behind a ifndef let me know.
If SPDLOG_NO_TLS is defined the & flag is treated as an unknown flag, if you prefer just ignoring it or something similar, let me know.
I successfully tested these changes on a platform without TLS support with SPDLOG_NO_TLS defined.
This resolves the issue I mentioned in #3101. I added an error to
mdc.h
for anyone trying to include mdc ifSPDLOG_NO_TLS
is defined, if you prefer making themdc::
functions no-ops or putting the class itself behind a ifndef let me know. IfSPDLOG_NO_TLS
is defined the&
flag is treated as an unknown flag, if you prefer just ignoring it or something similar, let me know. I successfully tested these changes on a platform without TLS support withSPDLOG_NO_TLS
defined.