Where Online Learning is simpler!
The C and C++ Include Header Files
/usr/include/python3.12/ImPlatform.h
$ cat -n /usr/include/python3.12/ImPlatform.h 1 /* 2 * The Python Imaging Library 3 * $Id$ 4 * 5 * platform declarations for the imaging core library 6 * 7 * Copyright (c) Fredrik Lundh 1995-2003. 8 */ 9 10 #include "Python.h" 11 12 /* Check that we have an ANSI compliant compiler */ 13 #ifndef HAVE_PROTOTYPES 14 #error Sorry, this library requires support for ANSI prototypes. 15 #endif 16 #ifndef STDC_HEADERS 17 #error Sorry, this library requires ANSI header files. 18 #endif 19 20 #if defined(PIL_NO_INLINE) 21 #define inline 22 #else 23 #if defined(_MSC_VER) && !defined(__GNUC__) 24 #define inline __inline 25 #endif 26 #endif 27 28 #if defined(_WIN32) || defined(__CYGWIN__) /* WIN */ 29 30 #define WIN32_LEAN_AND_MEAN 31 #include
32 33 #ifdef __CYGWIN__ 34 #undef _WIN64 35 #undef _WIN32 36 #undef __WIN32__ 37 #undef WIN32 38 #endif 39 40 #else /* not WIN */ 41 /* For System that are not Windows, we'll need to define these. */ 42 /* We have to define them instead of using typedef because the JPEG lib also 43 defines their own types with the same names, so we need to be able to undef 44 ours before including the JPEG code. */ 45 46 #if __STDC_VERSION__ >= 199901L /* C99+ */ 47 48 #include
49 50 #define INT8 int8_t 51 #define UINT8 uint8_t 52 #define INT16 int16_t 53 #define UINT16 uint16_t 54 #define INT32 int32_t 55 #define UINT32 uint32_t 56 57 #else /* < C99 */ 58 59 #define INT8 signed char 60 61 #if SIZEOF_SHORT == 2 62 #define INT16 short 63 #elif SIZEOF_INT == 2 64 #define INT16 int 65 #else 66 #error Cannot find required 16-bit integer type 67 #endif 68 69 #if SIZEOF_SHORT == 4 70 #define INT32 short 71 #elif SIZEOF_INT == 4 72 #define INT32 int 73 #elif SIZEOF_LONG == 4 74 #define INT32 long 75 #else 76 #error Cannot find required 32-bit integer type 77 #endif 78 79 #define UINT8 unsigned char 80 #define UINT16 unsigned INT16 81 #define UINT32 unsigned INT32 82 83 #endif /* < C99 */ 84 85 #endif /* not WIN */ 86 87 /* assume IEEE; tweak if necessary (patches are welcome) */ 88 #define FLOAT16 UINT16 89 #define FLOAT32 float 90 #define FLOAT64 double 91 92 #ifdef _MSC_VER 93 typedef signed __int64 int64_t; 94 #endif 95 96 #ifdef __GNUC__ 97 #define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) 98 #endif
Contact us
|
About us
|
Term of use
|
Copyright © 2000-2025 MyWebUniversity.com ™