Index: third_party/freetype/include/freetype/internal/ftmemory.h |
diff --git a/third_party/freetype/include/internal/ftmemory.h b/third_party/freetype/include/freetype/internal/ftmemory.h |
similarity index 93% |
rename from third_party/freetype/include/internal/ftmemory.h |
rename to third_party/freetype/include/freetype/internal/ftmemory.h |
index 3d51aeec69fd061bc6ed261efe456c1d2fa36ef4..c0c553b4fc92a99c4e7c3ecc22dabc4db5c8cd6f 100644 |
--- a/third_party/freetype/include/internal/ftmemory.h |
+++ b/third_party/freetype/include/freetype/internal/ftmemory.h |
@@ -4,7 +4,7 @@ |
/* */ |
/* The FreeType memory management macros (specification). */ |
/* */ |
-/* Copyright 1996-2002, 2004-2007, 2010, 2013 by */ |
+/* Copyright 1996-2015 by */ |
/* David Turner, Robert Wilhelm, and Werner Lemberg */ |
/* */ |
/* This file is part of the FreeType project, and may only be used, */ |
@@ -215,11 +215,14 @@ FT_BEGIN_HEADER |
#define FT_MEM_SET_ERROR( cond ) ( (cond), error != 0 ) |
-#define FT_MEM_SET( dest, byte, count ) ft_memset( dest, byte, count ) |
+#define FT_MEM_SET( dest, byte, count ) \ |
+ ft_memset( dest, byte, (FT_Offset)(count) ) |
-#define FT_MEM_COPY( dest, source, count ) ft_memcpy( dest, source, count ) |
+#define FT_MEM_COPY( dest, source, count ) \ |
+ ft_memcpy( dest, source, (FT_Offset)(count) ) |
-#define FT_MEM_MOVE( dest, source, count ) ft_memmove( dest, source, count ) |
+#define FT_MEM_MOVE( dest, source, count ) \ |
+ ft_memmove( dest, source, (FT_Offset)(count) ) |
#define FT_MEM_ZERO( dest, count ) FT_MEM_SET( dest, 0, count ) |
@@ -227,14 +230,19 @@ FT_BEGIN_HEADER |
#define FT_ZERO( p ) FT_MEM_ZERO( p, sizeof ( *(p) ) ) |
-#define FT_ARRAY_ZERO( dest, count ) \ |
- FT_MEM_ZERO( dest, (count) * sizeof ( *(dest) ) ) |
+#define FT_ARRAY_ZERO( dest, count ) \ |
+ FT_MEM_ZERO( dest, \ |
+ (FT_Offset)(count) * sizeof ( *(dest) ) ) |
-#define FT_ARRAY_COPY( dest, source, count ) \ |
- FT_MEM_COPY( dest, source, (count) * sizeof ( *(dest) ) ) |
+#define FT_ARRAY_COPY( dest, source, count ) \ |
+ FT_MEM_COPY( dest, \ |
+ source, \ |
+ (FT_Offset)(count) * sizeof ( *(dest) ) ) |
-#define FT_ARRAY_MOVE( dest, source, count ) \ |
- FT_MEM_MOVE( dest, source, (count) * sizeof ( *(dest) ) ) |
+#define FT_ARRAY_MOVE( dest, source, count ) \ |
+ FT_MEM_MOVE( dest, \ |
+ source, \ |
+ (FT_Offset)(count) * sizeof ( *(dest) ) ) |
/* |