Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: third_party/libwebp/webp/types.h

Issue 10690171: libwebp: fix some int <-> size_t mix for buffer sizes (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: even newer patch Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/libwebp/webp/decode.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 Google Inc. 1 // Copyright 2010 Google Inc.
2 // 2 //
3 // This code is licensed under the same terms as WebM: 3 // This code is licensed under the same terms as WebM:
4 // Software License Agreement: http://www.webmproject.org/license/software/ 4 // Software License Agreement: http://www.webmproject.org/license/software/
5 // Additional IP Rights Grant: http://www.webmproject.org/license/additional/ 5 // Additional IP Rights Grant: http://www.webmproject.org/license/additional/
6 // ----------------------------------------------------------------------------- 6 // -----------------------------------------------------------------------------
7 // 7 //
8 // Common types 8 // Common types
9 // 9 //
10 // Author: Skal (pascal.massimino@gmail.com) 10 // Author: Skal (pascal.massimino@gmail.com)
11 11
12 #ifndef WEBP_WEBP_TYPES_H_ 12 #ifndef WEBP_WEBP_TYPES_H_
13 #define WEBP_WEBP_TYPES_H_ 13 #define WEBP_WEBP_TYPES_H_
14 14
15 #include <stddef.h> // for size_t
16
15 #ifndef _MSC_VER 17 #ifndef _MSC_VER
16 #include <inttypes.h> 18 #include <inttypes.h>
17 #else 19 #else
18 typedef signed char int8_t; 20 typedef signed char int8_t;
19 typedef unsigned char uint8_t; 21 typedef unsigned char uint8_t;
20 typedef signed short int16_t; 22 typedef signed short int16_t;
21 typedef unsigned short uint16_t; 23 typedef unsigned short uint16_t;
22 typedef signed int int32_t; 24 typedef signed int int32_t;
23 typedef unsigned int uint32_t; 25 typedef unsigned int uint32_t;
24 typedef unsigned long long int uint64_t; 26 typedef unsigned long long int uint64_t;
25 typedef long long int int64_t; 27 typedef long long int int64_t;
26 #define inline __forceinline 28 #define inline __forceinline
27 #endif /* _MSC_VER */ 29 #endif /* _MSC_VER */
28 30
29 #ifndef WEBP_EXTERN 31 #ifndef WEBP_EXTERN
30 // This explicitly marks library functions and allows for changing the 32 // This explicitly marks library functions and allows for changing the
31 // signature for e.g., Windows DLL builds. 33 // signature for e.g., Windows DLL builds.
32 #define WEBP_EXTERN(type) extern type 34 #define WEBP_EXTERN(type) extern type
33 #endif /* WEBP_EXTERN */ 35 #endif /* WEBP_EXTERN */
34 36
35 #endif /* WEBP_WEBP_TYPES_H_ */ 37 #endif /* WEBP_WEBP_TYPES_H_ */
OLDNEW
« no previous file with comments | « third_party/libwebp/webp/decode.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698