OLD | NEW |
1 /***************************************************************************/ | 1 /***************************************************************************/ |
2 /* */ | 2 /* */ |
3 /* ftmisc.h */ | 3 /* ftmisc.h */ |
4 /* */ | 4 /* */ |
5 /* Miscellaneous macros for stand-alone rasterizer (specification */ | 5 /* Miscellaneous macros for stand-alone rasterizer (specification */ |
6 /* only). */ | 6 /* only). */ |
7 /* */ | 7 /* */ |
8 /* Copyright 2005, 2009, 2010 by */ | 8 /* Copyright 2005, 2009, 2010 by */ |
9 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ | 9 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
10 /* */ | 10 /* */ |
(...skipping 11 matching lines...) Expand all Loading... |
22 /* This file is *not* portable! You have to adapt */ | 22 /* This file is *not* portable! You have to adapt */ |
23 /* its definitions to your platform. */ | 23 /* its definitions to your platform. */ |
24 /* */ | 24 /* */ |
25 /***************************************************/ | 25 /***************************************************/ |
26 | 26 |
27 #ifndef __FTMISC_H__ | 27 #ifndef __FTMISC_H__ |
28 #define __FTMISC_H__ | 28 #define __FTMISC_H__ |
29 | 29 |
30 | 30 |
31 /* memset */ | 31 /* memset */ |
32 #include "../../include/freetype/config/ftstdlib.h" | 32 #include FT_CONFIG_STANDARD_LIBRARY_H |
33 | 33 |
34 #define FT_BEGIN_HEADER | 34 #define FT_BEGIN_HEADER |
35 #define FT_END_HEADER | 35 #define FT_END_HEADER |
36 | 36 |
37 #define FT_LOCAL_DEF( x ) static x | 37 #define FT_LOCAL_DEF( x ) static x |
38 | 38 |
39 | 39 |
40 /* from include/freetype2/fttypes.h */ | 40 /* from include/freetype2/fttypes.h */ |
41 | 41 |
42 typedef unsigned char FT_Byte; | 42 typedef unsigned char FT_Byte; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 d = (FT_Long)( c > 0 ? (FT_Int64)a * b / c | 133 d = (FT_Long)( c > 0 ? (FT_Int64)a * b / c |
134 : 0x7FFFFFFFL ); | 134 : 0x7FFFFFFFL ); |
135 | 135 |
136 return ( s > 0 ) ? d : -d; | 136 return ( s > 0 ) ? d : -d; |
137 } | 137 } |
138 | 138 |
139 #endif /* __FTMISC_H__ */ | 139 #endif /* __FTMISC_H__ */ |
140 | 140 |
141 | 141 |
142 /* END */ | 142 /* END */ |
OLD | NEW |