diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2014-06-11 19:04:32 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2014-06-11 19:04:32 +0000 |
commit | a4f1156edc27ae06729a878a494eb249db60c93b (patch) | |
tree | bbda05969d761155ca38bbc6bbc271e16ad71d91 | |
parent | 1e87dc455f86fe01da311fa24b52a5f177cc8c83 (diff) |
Fixed WIN32 build (stdint.h)
-rw-r--r-- | src/htscharset.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/htscharset.c b/src/htscharset.c index 48cef69..ad994a5 100644 --- a/src/htscharset.c +++ b/src/htscharset.c @@ -35,7 +35,17 @@ Please visit our Website: http://www.httrack.com #include "punycode.h" #include "htssafe.h" +#ifdef _WIN32 +#include <stddef.h> +typedef unsigned __int32 uint32_t; +typedef unsigned __int64 uint64_t; +#elif (defined(SOLARIS) || defined(sun) || defined(HAVE_INTTYPES_H) \ + || defined(BSD) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD_kernel__)) +#include <inttypes.h> +#else #include <stdint.h> +#endif +#include <stdarg.h> int hts_isStringAscii(const char *s, size_t size) { size_t i; |