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

Unified Diff: native_client_sdk/src/libraries/nacl_mounts/osinttypes.h

Issue 11887021: [NaCl SDK] Add HTTP mount. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « native_client_sdk/src/libraries/nacl_mounts/nacl_mounts.h ('k') | native_client_sdk/src/libraries/nacl_mounts/path.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698