Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/thirdparty/jbig2dec/config_win32.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 /* Copyright (C) 2001-2023 Artifex Software, Inc. | |
| 2 All Rights Reserved. | |
| 3 | |
| 4 This software is provided AS-IS with no warranty, either express or | |
| 5 implied. | |
| 6 | |
| 7 This software is distributed under license and may not be copied, | |
| 8 modified or distributed except as expressly authorized under the terms | |
| 9 of the license contained in the file LICENSE in this distribution. | |
| 10 | |
| 11 Refer to licensing information at http://www.artifex.com or contact | |
| 12 Artifex Software, Inc., 39 Mesa Street, Suite 108A, San Francisco, | |
| 13 CA 94129, USA, for further information. | |
| 14 */ | |
| 15 | |
| 16 /* | |
| 17 jbig2dec | |
| 18 */ | |
| 19 | |
| 20 /* configuration header file for compiling under Microsoft Windows */ | |
| 21 | |
| 22 #ifdef _MSC_VER | |
| 23 | |
| 24 /* VS 2012 and later have stdint.h */ | |
| 25 # if _MSC_VER >= 1700 | |
| 26 # include <stdint.h> | |
| 27 # else | |
| 28 typedef signed char int8_t; | |
| 29 typedef short int int16_t; | |
| 30 typedef int int32_t; | |
| 31 typedef __int64 int64_t; | |
| 32 typedef unsigned char uint8_t; | |
| 33 typedef unsigned short int uint16_t; | |
| 34 typedef unsigned int uint32_t; | |
| 35 typedef unsigned __int64 uint64_t; | |
| 36 #ifndef SIZE_MAX | |
| 37 #define SIZE_MAX (~((size_t) 0)) | |
| 38 #endif | |
| 39 # endif | |
| 40 | |
| 41 /* VS 2008 and later have vsnprintf */ | |
| 42 # if _MSC_VER < 1500 | |
| 43 # define vsnprintf _vsnprintf | |
| 44 /* Previously we defined inline as nothing for 2005 and below */ | |
| 45 # define inline | |
| 46 #else | |
| 47 /* VS 2008 has __inline but not inline, later versions (unknown exactly where) define inline | |
| 48 * so cater for it being defined already. | |
| 49 */ | |
| 50 # if !(defined(inline)) | |
| 51 # define inline __inline | |
| 52 # endif | |
| 53 # endif | |
| 54 | |
| 55 /* VS 2014 and later have (finally) snprintf */ | |
| 56 # if _MSC_VER >= 1900 | |
| 57 # define STDC99 | |
| 58 # else | |
| 59 # define snprintf _snprintf | |
| 60 # endif | |
| 61 | |
| 62 #else /* _MSC_VER */ | |
| 63 | |
| 64 /* Not VS -- it had best behave */ | |
| 65 # include <stdint.h> | |
| 66 | |
| 67 #endif /* _MSC_VER */ |
