osinttypes.h revision ca12bfac764ba476d6cd062bf1dde12cc64c3f40
1/* Copyright (c) 2012 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#ifndef NACL_IO_OSINTTYPES_H_
6#define NACL_IO_OSINTTYPES_H_
7
8/* Define printf/scanf format strings for size_t. */
9
10#if defined(WIN32)
11
12#if !defined(PRIuS)
13#define PRIuS "Iu"
14#endif
15
16#if !defined(SCNuS)
17#define SCNuS "Iu"
18#endif
19
20#elif defined(__native_client__)
21
22#include <inttypes.h>
23
24#if !defined(PRIuS)
25#define PRIuS "zu"
26#endif
27
28#if !defined(SCNuS)
29#define SCNuS "zu"
30#endif
31
32#endif  /* defined(__native_client__) */
33
34#endif  /* NACL_IO_OSINTTYPES_H_ */
35