OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 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 |
| 7 // to provide a compatibility layer between MSVC and skia |
| 8 |
| 9 #ifndef SKIA_CONFIG_WIN_STDINT_H_ |
| 10 #define SKIA_CONFIG_WIN_STDINT_H |
| 11 |
| 12 #if !defined(_MSC_VER) |
| 13 #error This file should only be included when compiling with MSVC. |
| 14 #endif |
| 15 |
| 16 // Define C99 equivalent types. |
| 17 typedef signed char int8_t; |
| 18 typedef signed short int16_t; |
| 19 typedef signed int int32_t; |
| 20 typedef signed long long int64_t; |
| 21 typedef unsigned char uint8_t; |
| 22 typedef unsigned short uint16_t; |
| 23 typedef unsigned int uint32_t; |
| 24 typedef unsigned long long uint64_t; |
| 25 |
| 26 #endif // SKIA_CONFIG_WIN_STDINT_H |
OLD | NEW |