Fix some lint errors in url_request_context_adapter
[chromium-blink-merge.git] / third_party / libwebp / webp / types.h
blob568d1f263ffb12650b7d8cb2149793f30c6c3b42
1 // Copyright 2010 Google Inc. All Rights Reserved.
2 //
3 // Use of this source code is governed by a BSD-style license
4 // that can be found in the COPYING file in the root of the source
5 // tree. An additional intellectual property rights grant can be found
6 // in the file PATENTS. All contributing project authors may
7 // be found in the AUTHORS file in the root of the source tree.
8 // -----------------------------------------------------------------------------
9 //
10 // Common types
12 // Author: Skal (pascal.massimino@gmail.com)
14 #ifndef WEBP_WEBP_TYPES_H_
15 #define WEBP_WEBP_TYPES_H_
17 #include <stddef.h> // for size_t
19 #ifndef _MSC_VER
20 #include <inttypes.h>
21 #ifdef __STRICT_ANSI__
22 #define WEBP_INLINE
23 #else /* __STRICT_ANSI__ */
24 #define WEBP_INLINE inline
25 #endif
26 #else
27 typedef signed char int8_t;
28 typedef unsigned char uint8_t;
29 typedef signed short int16_t;
30 typedef unsigned short uint16_t;
31 typedef signed int int32_t;
32 typedef unsigned int uint32_t;
33 typedef unsigned long long int uint64_t;
34 typedef long long int int64_t;
35 #define WEBP_INLINE __forceinline
36 #endif /* _MSC_VER */
38 #ifndef WEBP_EXTERN
39 // This explicitly marks library functions and allows for changing the
40 // signature for e.g., Windows DLL builds.
41 #define WEBP_EXTERN(type) extern type
42 #endif /* WEBP_EXTERN */
44 // Macro to check ABI compatibility (same major revision number)
45 #define WEBP_ABI_IS_INCOMPATIBLE(a, b) (((a) >> 8) != ((b) >> 8))
47 #endif /* WEBP_WEBP_TYPES_H_ */