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

Unified Diff: include/core/SkTypes.h

Issue 798723002: More win64 warning fixes (Closed) Base URL: https://skia.googlesource.com/skia.git@size_t
Patch Set: off_t is signed Created 6 years 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 | « gm/tallstretchedbitmaps.cpp ('k') | src/core/SkDebug.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkTypes.h
diff --git a/include/core/SkTypes.h b/include/core/SkTypes.h
index a38be84d8fbc38325ae217fc265a2ccc5dfb0b23..72ebb093c266e3013f87e79b5c8564cdd6d36612 100644
--- a/include/core/SkTypes.h
+++ b/include/core/SkTypes.h
@@ -12,6 +12,7 @@
#include "SkUserConfig.h"
#include "SkPostConfig.h"
#include <stdint.h>
+#include <sys/types.h>
/** \file SkTypes.h
*/
@@ -244,6 +245,7 @@ typedef uint8_t SkBool8;
SK_API int SkToInt(intmax_t);
SK_API unsigned SkToUInt(uintmax_t);
SK_API size_t SkToSizeT(uintmax_t);
+ SK_API off_t SkToOffT(intmax_t x);
#else
#define SkToS8(x) ((int8_t)(x))
#define SkToU8(x) ((uint8_t)(x))
@@ -254,6 +256,7 @@ typedef uint8_t SkBool8;
#define SkToInt(x) ((int)(x))
#define SkToUInt(x) ((unsigned)(x))
#define SkToSizeT(x) ((size_t)(x))
+ #define SkToOffT(x) ((off_t)(x))
#endif
/** Returns 0 or 1 based on the condition
« no previous file with comments | « gm/tallstretchedbitmaps.cpp ('k') | src/core/SkDebug.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698