diff options
Diffstat (limited to 'src/include/platform_interface.h')
-rw-r--r-- | src/include/platform_interface.h | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/src/include/platform_interface.h b/src/include/platform_interface.h index 48a7e6f7..b5623c38 100644 --- a/src/include/platform_interface.h +++ b/src/include/platform_interface.h | |||
@@ -34,43 +34,6 @@ | |||
34 | /* ***************************** | 34 | /* ***************************** |
35 | General function mapping | 35 | General function mapping |
36 | *****************************/ | 36 | *****************************/ |
37 | #if !defined(_WIN32) || defined(__CYGWIN__) | ||
38 | /** | ||
39 | * Check two strings case-insensitive equality | ||
40 | * @param a first string to check | ||
41 | * @param b second string to check | ||
42 | * @return boolean true if strings are equal, boolean false if strings are unequal | ||
43 | */ | ||
44 | #define MHD_str_equal_caseless_(a,b) (0==strcasecmp((a),(b))) | ||
45 | #else | ||
46 | /** | ||
47 | * Check two strings case-insensitive equality | ||
48 | * @param a first string to check | ||
49 | * @param b second string to check | ||
50 | * @return boolean true if strings are equal, boolean false if strings are unequal | ||
51 | */ | ||
52 | #define MHD_str_equal_caseless_(a,b) (0==_stricmp((a),(b))) | ||
53 | #endif | ||
54 | |||
55 | #if !defined(_WIN32) || defined(__CYGWIN__) | ||
56 | /** | ||
57 | * Check not more than n chars in two strings case-insensitive equality | ||
58 | * @param a first string to check | ||
59 | * @param b second string to check | ||
60 | * @param n maximum number of chars to check | ||
61 | * @return boolean true if strings are equal, boolean false if strings are unequal | ||
62 | */ | ||
63 | #define MHD_str_equal_caseless_n_(a,b,n) (0==strncasecmp((a),(b),(n))) | ||
64 | #else | ||
65 | /** | ||
66 | * Check not more than n chars in two strings case-insensitive equality | ||
67 | * @param a first string to check | ||
68 | * @param b second string to check | ||
69 | * @param n maximum number of chars to check | ||
70 | * @return boolean true if strings are equal, boolean false if strings are unequal | ||
71 | */ | ||
72 | #define MHD_str_equal_caseless_n_(a,b,n) (0==_strnicmp((a),(b),(n))) | ||
73 | #endif | ||
74 | 37 | ||
75 | /* Platform-independent snprintf name */ | 38 | /* Platform-independent snprintf name */ |
76 | #if defined(HAVE_SNPRINTF) | 39 | #if defined(HAVE_SNPRINTF) |