Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/thirdparty/extract/src/compat_stdint.h @ 2:b50eed0cc0ef upstream
ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4.
The directory name has changed: no version number in the expanded directory now.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 15 Sep 2025 11:43:07 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1:1d09e1dec1d9 | 2:b50eed0cc0ef |
|---|---|
| 1 #ifndef ARTIFEX_EXTRACT_COMPAT_STDINT_H | |
| 2 #define ARTIFEX_EXTRACT_COMPAT_STDINT_H | |
| 3 | |
| 4 /* Fake what we need from stdint.h on MSVS. */ | |
| 5 | |
| 6 #if defined(_MSC_VER) && (_MSC_VER < 1700) /* MSVC older than VS2012 */ | |
| 7 typedef signed char int8_t; | |
| 8 typedef short int int16_t; | |
| 9 typedef int int32_t; | |
| 10 typedef __int64 int64_t; | |
| 11 typedef unsigned char uint8_t; | |
| 12 typedef unsigned short int uint16_t; | |
| 13 typedef unsigned int uint32_t; | |
| 14 typedef unsigned __int64 uint64_t; | |
| 15 #ifndef INT64_MAX | |
| 16 #define INT64_MAX 9223372036854775807i64 | |
| 17 #endif | |
| 18 #ifndef SIZE_MAX | |
| 19 #define SIZE_MAX ((size_t) -1) | |
| 20 #endif | |
| 21 #else | |
| 22 #include <stdint.h> | |
| 23 #endif | |
| 24 | |
| 25 #if defined(_MSC_VER) && (_MSC_VER < 1800) /* MSVC older than VS2013 */ | |
| 26 #define strtoll( text, end, base) (long long) _strtoi64(text, end, base) | |
| 27 #define strtoull( text, end, base) (unsigned long long) _strtoi64(text, end, base) | |
| 28 #endif | |
| 29 | |
| 30 #endif |
