| Index: native_client_sdk/src/libraries/nacl_mounts/osinttypes.h
|
| diff --git a/native_client_sdk/src/libraries/nacl_mounts/osinttypes.h b/native_client_sdk/src/libraries/nacl_mounts/osinttypes.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e6705f016fc15b6cf9e2057ea8b17d271e24f9aa
|
| --- /dev/null
|
| +++ b/native_client_sdk/src/libraries/nacl_mounts/osinttypes.h
|
| @@ -0,0 +1,34 @@
|
| +/* 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_MOUNTS_OSINTTYPES_H_
|
| +#define NACL_MOUNTS_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
|
| +
|
| +#elif defined(__native_client__)
|
| +
|
| +#include <inttypes.h>
|
| +
|
| +#if !defined(PRIuS)
|
| +#define PRIuS "zu"
|
| +#endif
|
| +
|
| +#if !defined(SCNuS)
|
| +#define SCNuS "zu"
|
| +#endif
|
| +
|
| +#endif // defined(__native_client__)
|
| +
|
| +#endif // NACL_MOUNTS_OSINTTYPES_H_
|
|
|