support TLS when the constant is not defined