diff options
Diffstat (limited to 'src/common/compat.h')
-rw-r--r-- | src/common/compat.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index a4f52040a0..f0757d577f 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -155,6 +155,9 @@ const void *tor_memmem(const void *haystack, size_t hlen, const void *needle, #define TOR_ISLOWER(c) islower((int)(unsigned char)(c)) #define TOR_ISUPPER(c) isupper((int)(unsigned char)(c)) +#define TOR_TOLOWER(c) ((char)tolower((int)(unsigned char)(c))) +#define TOR_TOUPPER(c) ((char)toupper((int)(unsigned char)(c))) + #ifdef MS_WINDOWS #define _SHORT_FILE_ (tor_fix_source_file(__FILE__)) const char *tor_fix_source_file(const char *fname); |