| /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| * Use of this source code is governed by a BSD-style license that can be |
| * found in the LICENSE file. */ |
| |
| #ifndef NACL_IO_OSINTTYPES_H_ |
| #define NACL_IO_OSINTTYPES_H_ |
| |
| /* Define printf/scanf format strings for size_t. */ |
| |
| #if defined(WIN32) |
| |
| #if !defined(PRIuS) |
| #define PRIuS "Iu" |
| #endif |
| |
| #if !defined(SCNuS) |
| #define SCNuS "Iu" |
| #endif |
| |
| #else |
| |
| #if !defined(__STDC_FORMAT_MACROS) |
| #define __STDC_FORMAT_MACROS 1 |
| #endif |
| #include <inttypes.h> |
| |
| #if !defined(PRIuS) |
| #define PRIuS "zu" |
| #endif |
| |
| #if !defined(SCNuS) |
| #define SCNuS "zu" |
| #endif |
| |
| #endif |
| |
| #endif /* NACL_IO_OSINTTYPES_H_ */ |