summaryrefslogtreecommitdiff
path: root/src/common/strlib.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-05-08 17:39:22 +0200
committerHaru <haru@dotalux.com>2016-05-08 19:53:59 +0200
commit578b9d8a266a43372717ded4fddbcdbb58b5c810 (patch)
tree7668bc4437bdf34c2124c74a88215f82201f3d9d /src/common/strlib.h
parent1cca070e1a3b82c33a1aecaa6ec9bfc72516a640 (diff)
downloadhercules-578b9d8a266a43372717ded4fddbcdbb58b5c810.tar.gz
hercules-578b9d8a266a43372717ded4fddbcdbb58b5c810.tar.bz2
hercules-578b9d8a266a43372717ded4fddbcdbb58b5c810.tar.xz
hercules-578b9d8a266a43372717ded4fddbcdbb58b5c810.zip
Removed some legacy checks for MSVC <= 2003
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common/strlib.h')
-rw-r--r--src/common/strlib.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/strlib.h b/src/common/strlib.h
index 36dceef2d..fa7d577eb 100644
--- a/src/common/strlib.h
+++ b/src/common/strlib.h
@@ -33,7 +33,7 @@
#define normalize_name(str,delims) (strlib->normalize_name_((str),(delims)))
#define stristr(haystack,needle) (strlib->stristr_((haystack),(needle)))
-#if !(defined(WIN32) && defined(_MSC_VER) && _MSC_VER >= 1400) && !defined(HAVE_STRNLEN)
+#if !(defined(WIN32) && defined(_MSC_VER)) && !defined(HAVE_STRNLEN)
#define strnlen(string,maxlen) (strlib->strnlen_((string),(maxlen)))
#endif
@@ -98,7 +98,7 @@ struct strlib_interface {
char *(*normalize_name_) (char* str,const char* delims);
const char *(*stristr_) (const char *haystack, const char *needle);
- /* only used when '!(defined(WIN32) && defined(_MSC_VER) && _MSC_VER >= 1400) && !defined(HAVE_STRNLEN)', needs to be defined at all times however */
+ /* only used when '!(defined(WIN32) && defined(_MSC_VER)) && !defined(HAVE_STRNLEN)', needs to be defined at all times however */
size_t (*strnlen_) (const char* string, size_t maxlen);
/* only used when 'WIN32' */