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

Side by Side Diff: mojo/platform_handle/platform_handle_private_thunks.cc

Issue 1543603002: Switch to standard integer types in mojo/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 12 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 unified diff | Download patch
« no previous file with comments | « mojo/package_manager/package_manager_impl.cc ('k') | mojo/public/c/system/buffer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "mojo/platform_handle/platform_handle_private_thunks.h" 5 #include "mojo/platform_handle/platform_handle_private_thunks.h"
6 6
7 #include <assert.h> 7 #include <assert.h>
8 #include <stddef.h>
8 9
9 #if defined(WIN32) 10 #if defined(WIN32)
10 #define THUNK_EXPORT __declspec(dllexport) 11 #define THUNK_EXPORT __declspec(dllexport)
11 #else 12 #else
12 #define THUNK_EXPORT __attribute__((visibility("default"))) 13 #define THUNK_EXPORT __attribute__((visibility("default")))
13 #endif 14 #endif
14 15
15 extern "C" { 16 extern "C" {
16 17
17 static MojoPlatformHandlePrivateThunks g_thunks = {0}; 18 static MojoPlatformHandlePrivateThunks g_thunks = {0};
(...skipping 11 matching lines...) Expand all
29 } 30 }
30 31
31 extern "C" THUNK_EXPORT size_t MojoSetPlatformHandlePrivateThunks( 32 extern "C" THUNK_EXPORT size_t MojoSetPlatformHandlePrivateThunks(
32 const MojoPlatformHandlePrivateThunks* thunks) { 33 const MojoPlatformHandlePrivateThunks* thunks) {
33 if (thunks->size >= sizeof(g_thunks)) 34 if (thunks->size >= sizeof(g_thunks))
34 g_thunks = *thunks; 35 g_thunks = *thunks;
35 return sizeof(g_thunks); 36 return sizeof(g_thunks);
36 } 37 }
37 38
38 } // extern "C" 39 } // extern "C"
OLDNEW
« no previous file with comments | « mojo/package_manager/package_manager_impl.cc ('k') | mojo/public/c/system/buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698