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

Unified Diff: ppapi/c/pp_rect.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_point.h ('k') | ppapi/c/pp_size.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/pp_rect.h
===================================================================
--- ppapi/c/pp_rect.h (revision 65116)
+++ ppapi/c/pp_rect.h (working copy)
@@ -13,6 +13,7 @@
* @{
*/
+#include "ppapi/c/pp_macros.h"
#include "ppapi/c/pp_point.h"
#include "ppapi/c/pp_size.h"
#include "ppapi/c/pp_stdint.h"
@@ -22,8 +23,8 @@
struct PP_Size size;
};
-inline struct PP_Rect PP_MakeRectFromXYWH(int32_t x, int32_t y,
- int32_t w, int32_t h) {
+PP_INLINE struct PP_Rect PP_MakeRectFromXYWH(int32_t x, int32_t y,
+ int32_t w, int32_t h) {
struct PP_Rect ret;
ret.point.x = x;
ret.point.y = y;
« no previous file with comments | « ppapi/c/pp_point.h ('k') | ppapi/c/pp_size.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698