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

Side by Side Diff: skia/config/win/stdint.h

Issue 3043022: Fix include guard (Closed)
Patch Set: Created 10 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
« no previous file with comments | « no previous file | 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 (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // skia is written in C99 and requires <stdint.h> and <inttypes.h>. 5 // skia is written in C99 and requires <stdint.h> and <inttypes.h>.
6 // Since MSVC doesn't include these headers, we have to write our own version 6 // Since MSVC doesn't include these headers, we have to write our own version
7 // to provide a compatibility layer between MSVC and skia 7 // to provide a compatibility layer between MSVC and skia
8 8
9 #ifndef SKIA_CONFIG_WIN_STDINT_H_ 9 #ifndef SKIA_CONFIG_WIN_STDINT_H_
10 #define SKIA_CONFIG_WIN_STDINT_H 10 #define SKIA_CONFIG_WIN_STDINT_H_
11 11
12 #if !defined(_MSC_VER) 12 #if !defined(_MSC_VER)
13 #error This file should only be included when compiling with MSVC. 13 #error This file should only be included when compiling with MSVC.
14 #endif 14 #endif
15 15
16 // Define C99 equivalent types. 16 // Define C99 equivalent types.
17 typedef signed char int8_t; 17 typedef signed char int8_t;
18 typedef signed short int16_t; 18 typedef signed short int16_t;
19 typedef signed int int32_t; 19 typedef signed int int32_t;
20 typedef signed long long int64_t; 20 typedef signed long long int64_t;
21 typedef unsigned char uint8_t; 21 typedef unsigned char uint8_t;
22 typedef unsigned short uint16_t; 22 typedef unsigned short uint16_t;
23 typedef unsigned int uint32_t; 23 typedef unsigned int uint32_t;
24 typedef unsigned long long uint64_t; 24 typedef unsigned long long uint64_t;
25 25
26 #endif // SKIA_CONFIG_WIN_STDINT_H 26 #endif // SKIA_CONFIG_WIN_STDINT_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698