OLD | NEW |
1 /* | 1 /* |
2 * Copyright © 2007,2008,2009 Red Hat, Inc. | 2 * Copyright © 2007,2008,2009 Red Hat, Inc. |
3 * Copyright © 2011,2012 Google, Inc. | 3 * Copyright © 2011,2012 Google, Inc. |
4 * | 4 * |
5 * This is part of HarfBuzz, a text shaping library. | 5 * This is part of HarfBuzz, a text shaping library. |
6 * | 6 * |
7 * Permission is hereby granted, without written agreement and without | 7 * Permission is hereby granted, without written agreement and without |
8 * license or royalty fees, to use, copy, modify, and distribute this | 8 * license or royalty fees, to use, copy, modify, and distribute this |
9 * software and its documentation for any purpose, provided that the | 9 * software and its documentation for any purpose, provided that the |
10 * above copyright notice and the following two paragraphs appear in | 10 * above copyright notice and the following two paragraphs appear in |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 /* We need Windows Vista for both Uniscribe backend and for | 122 /* We need Windows Vista for both Uniscribe backend and for |
123 * MemoryBarrier. We don't support compiling on Windows XP, | 123 * MemoryBarrier. We don't support compiling on Windows XP, |
124 * though we run on it fine. */ | 124 * though we run on it fine. */ |
125 # if defined(_WIN32_WINNT) && _WIN32_WINNT < 0x0600 | 125 # if defined(_WIN32_WINNT) && _WIN32_WINNT < 0x0600 |
126 # undef _WIN32_WINNT | 126 # undef _WIN32_WINNT |
127 # endif | 127 # endif |
128 # ifndef _WIN32_WINNT | 128 # ifndef _WIN32_WINNT |
129 # define _WIN32_WINNT 0x0600 | 129 # define _WIN32_WINNT 0x0600 |
130 # endif | 130 # endif |
131 # ifndef WIN32_LEAN_AND_MEAN | 131 # ifndef WIN32_LEAN_AND_MEAN |
132 # define WIN32_LEAN_AND_MEAN | 132 # define WIN32_LEAN_AND_MEAN 1 |
133 # endif | 133 # endif |
134 # ifndef STRICT | 134 # ifndef STRICT |
135 # define STRICT | 135 # define STRICT 1 |
136 # endif | 136 # endif |
137 #endif | 137 #endif |
138 | 138 |
139 #ifdef _WIN32_WCE | 139 #ifdef _WIN32_WCE |
140 /* Some things not defined on Windows CE. */ | 140 /* Some things not defined on Windows CE. */ |
141 #define MemoryBarrier() | 141 #define MemoryBarrier() |
142 #define getenv(Name) NULL | 142 #define getenv(Name) NULL |
143 #define setlocale(Category, Locale) "C" | 143 #define setlocale(Category, Locale) "C" |
144 static int errno = 0; /* Use something better? */ | 144 static int errno = 0; /* Use something better? */ |
145 #endif | 145 #endif |
(...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
970 hb_options (void) | 970 hb_options (void) |
971 { | 971 { |
972 if (unlikely (!_hb_options.i)) | 972 if (unlikely (!_hb_options.i)) |
973 _hb_options_init (); | 973 _hb_options_init (); |
974 | 974 |
975 return _hb_options.opts; | 975 return _hb_options.opts; |
976 } | 976 } |
977 | 977 |
978 | 978 |
979 #endif /* HB_PRIVATE_HH */ | 979 #endif /* HB_PRIVATE_HH */ |
OLD | NEW |