summaryrefslogtreecommitdiff
path: root/src/sys-strings.h
diff options
context:
space:
mode:
authorstbuehler <stbuehler@152afb58-edef-0310-8abb-c4023f1b3aa9>2015-09-18 15:15:18 +0000
committerstbuehler <stbuehler@152afb58-edef-0310-8abb-c4023f1b3aa9>2015-09-18 15:15:18 +0000
commit8b2630a82fbecfd57fa38aebb397a755936690e5 (patch)
treea9cfcd7bb5bea87d63fc8ef81c8456a130a249bc /src/sys-strings.h
parente57c8295ebe92b58ca3e68fa8ea8f70d4b0b4cee (diff)
downloadlighttpd-master.tar.gz
add README to point to lighttpd-1.4.x as stableHEADmaster
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@3041 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/sys-strings.h')
-rw-r--r--src/sys-strings.h46
1 files changed, 0 insertions, 46 deletions
diff --git a/src/sys-strings.h b/src/sys-strings.h
deleted file mode 100644
index 1103a8c1..00000000
--- a/src/sys-strings.h
+++ /dev/null
@@ -1,46 +0,0 @@
-#ifndef _SYS_STRINGS_H_
-#define _SYS_STRINGS_H_
-
-#ifdef _WIN32
-#define strcasecmp stricmp
-#define strncasecmp strnicmp
-#include <stdlib.h>
-#define str_to_off_t(p, e, b) _strtoi64(p, e, b)
-#define STR_OFF_T_MAX LLONG_MAX
-#define STR_OFF_T_MIN LLONG_MIN
-#define strtoull _strtoui64
-#ifdef __MINGW32__
-/* missing prototype */
-unsigned __int64 _strtoui64(
- const char *nptr,
- char **endptr,
- int base
- );
-__int64 _strtoi64(
- const char *nptr,
- char **endptr,
- int base
- );
-#endif
-#else /** we are a unix */
-
-/**
- * we use strtoll() for parsing the ranges into a off_t
- *
- * if off_t is 32bit, we can use strtol() instead
- */
- #if SIZEOF_OFF_T == SIZEOF_LONG
- #define str_to_off_t(p, e, b) strtol(p, e, b)
- #define STR_OFF_T_MAX LONG_MAX
- #define STR_OFF_T_MIN LONG_MIN
- #elif defined(HAVE_STRTOLL)
- #define str_to_off_t(p, e, b) strtoll(p, e, b)
- #define STR_OFF_T_MAX LLONG_MAX
- #define STR_OFF_T_MIN LLONG_MIN
- #else
- #error off_t is more than 4 bytes but we can not parse it with strtol() (run autogen.sh again if you build from svn)
- #endif
-#endif
-
-#endif
-