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

Unified Diff: ppapi/c/pp_completion_callback.h

Issue 4310002: Make PPAPI headers compile with C compilers (gcc on Linux & Mac and MSVS on W... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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
« no previous file with comments | « ppapi/c/pp_bool.h ('k') | ppapi/c/pp_input_event.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/pp_completion_callback.h
===================================================================
--- ppapi/c/pp_completion_callback.h (revision 65116)
+++ ppapi/c/pp_completion_callback.h (working copy)
@@ -15,6 +15,7 @@
#include <stdlib.h>
+#include "ppapi/c/pp_macros.h"
#include "ppapi/c/pp_stdint.h"
typedef void (*PP_CompletionCallback_Func)(void* user_data, int32_t result);
@@ -36,15 +37,15 @@
void* user_data;
};
-inline struct PP_CompletionCallback PP_MakeCompletionCallback(
+PP_INLINE struct PP_CompletionCallback PP_MakeCompletionCallback(
PP_CompletionCallback_Func func,
void* user_data) {
struct PP_CompletionCallback cc = { func, user_data };
return cc;
}
-inline void PP_RunCompletionCallback(struct PP_CompletionCallback* cc,
- int32_t res) {
+PP_INLINE void PP_RunCompletionCallback(struct PP_CompletionCallback* cc,
+ int32_t res) {
cc->func(cc->user_data, res);
}
@@ -53,7 +54,7 @@
* behavior. If specified, the calling thread will block until a method
* completes. This is only usable from background threads.
*/
-inline struct PP_CompletionCallback PP_BlockUntilComplete() {
+PP_INLINE struct PP_CompletionCallback PP_BlockUntilComplete() {
return PP_MakeCompletionCallback(NULL, NULL);
}
« no previous file with comments | « ppapi/c/pp_bool.h ('k') | ppapi/c/pp_input_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698