Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 3 | pmbaty | 1 | // Copyright 2010 Google Inc. |
| 2 | // |
||
| 3 | // This code is licensed under the same terms as WebM: |
||
| 4 | // Software License Agreement: http://www.webmproject.org/license/software/ |
||
| 5 | // Additional IP Rights Grant: http://www.webmproject.org/license/additional/ |
||
| 6 | // ----------------------------------------------------------------------------- |
||
| 7 | // |
||
| 8 | // Common types |
||
| 9 | // |
||
| 10 | // Author: Skal (pascal.massimino@gmail.com) |
||
| 11 | |||
| 12 | #ifndef WEBP_WEBP_TYPES_H_ |
||
| 13 | #define WEBP_WEBP_TYPES_H_ |
||
| 14 | |||
| 15 | #ifndef _MSC_VER |
||
| 16 | #include <inttypes.h> |
||
| 17 | #ifdef __STRICT_ANSI__ |
||
| 18 | #define WEBP_INLINE |
||
| 19 | #else /* __STRICT_ANSI__ */ |
||
| 20 | #define WEBP_INLINE inline |
||
| 21 | #endif |
||
| 22 | #else |
||
| 23 | typedef signed char int8_t; |
||
| 24 | typedef unsigned char uint8_t; |
||
| 25 | typedef signed short int16_t; |
||
| 26 | typedef unsigned short uint16_t; |
||
| 27 | typedef signed int int32_t; |
||
| 28 | typedef unsigned int uint32_t; |
||
| 29 | typedef unsigned long long int uint64_t; |
||
| 30 | typedef long long int int64_t; |
||
| 31 | #define WEBP_INLINE __forceinline |
||
| 32 | #endif /* _MSC_VER */ |
||
| 33 | |||
| 34 | #ifndef WEBP_EXTERN |
||
| 35 | // This explicitly marks library functions and allows for changing the |
||
| 36 | // signature for e.g., Windows DLL builds. |
||
| 37 | #define WEBP_EXTERN(type) extern type |
||
| 38 | #endif /* WEBP_EXTERN */ |
||
| 39 | |||
| 40 | #endif /* WEBP_WEBP_TYPES_H_ */ |