summaryrefslogtreecommitdiff
path: root/src/common/strlib.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-01-20 15:56:09 +0100
committerHaru <haru@dotalux.com>2014-01-23 17:05:41 +0100
commit22b7f90297184775ad94d8cb4806e8664c78d934 (patch)
tree77aabfd754fe72b22b922b019b7e7da2db630a3c /src/common/strlib.h
parent0b96dc2756d97048fc8d4bf2c0eca8ae2555a82e (diff)
downloadhercules-22b7f90297184775ad94d8cb4806e8664c78d934.tar.gz
hercules-22b7f90297184775ad94d8cb4806e8664c78d934.tar.bz2
hercules-22b7f90297184775ad94d8cb4806e8664c78d934.tar.xz
hercules-22b7f90297184775ad94d8cb4806e8664c78d934.zip
Minor fixes to the strlib interface
- Fixed a typo in the strnlen() macro (was strnln) - Initialized strlib->strnlen and strlib->strtoull to NULL on platforms that don't require them. Please note that those two functions are supposed to never be called directly but only through the strnlen() and strtoull() macros, which take care of the platform abstraction. - Removed localized versions of yes/no from config_switch (if you really want to be able to use "oui", "ja", "si", "non", "nein", feel free to add them back yourself following the example in strlib.c) Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common/strlib.h')
-rw-r--r--src/common/strlib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/strlib.h b/src/common/strlib.h
index 5336260f6..7a1066401 100644
--- a/src/common/strlib.h
+++ b/src/common/strlib.h
@@ -175,7 +175,7 @@ void strlib_defaults(void);
#define stristr(haystack,needle) (strlib->stristr((haystack),(needle)))
#if !(defined(WIN32) && defined(_MSC_VER) && _MSC_VER >= 1400) && !defined(HAVE_STRNLEN)
- #define strnln(string,maxlen) (strlib->strnlen((string),(maxlen)))
+ #define strnlen(string,maxlen) (strlib->strnlen((string),(maxlen)))
#endif
#if defined(WIN32) && defined(_MSC_VER) && _MSC_VER <= 1200