213 // GCC 4.3 does not allow 0.0/0.0 to produce a NAN value
214 #if (__GNUC__ == 4) && (__GNUC_MINOR__ > 2)
215 #define CAN_USE_NAN_DEFINE 1
216 #endif
217
218
219 // Checking for finiteness
220
221 inline int g_isfinite(jfloat f) { return finite(f); }
222 inline int g_isfinite(jdouble f) { return finite(f); }
223
224
225 // Wide characters
226
227 inline int wcslen(const jchar* x) { return wcslen((const wchar_t*)x); }
228
229
230 // Portability macros
231 #define PRAGMA_INTERFACE #pragma interface
232 #define PRAGMA_IMPLEMENTATION #pragma implementation
233 #define VALUE_OBJ_CLASS_SPEC
234
235 #if (__GNUC__ == 2) && (__GNUC_MINOR__ < 95)
236 #define TEMPLATE_TABLE_BUG
237 #endif
238 #if (__GNUC__ == 2) && (__GNUC_MINOR__ >= 96)
239 #define CONST_SDM_BUG
240 #endif
241
242 // Formatting.
243 #ifdef _LP64
244 # ifdef __APPLE__
245 # define FORMAT64_MODIFIER "ll"
246 # else
247 # define FORMAT64_MODIFIER "l"
248 # endif
249 #else // !_LP64
250 #define FORMAT64_MODIFIER "ll"
251 #endif // _LP64
252
253 // HACK: gcc warns about applying offsetof() to non-POD object or calculating
|
213 // GCC 4.3 does not allow 0.0/0.0 to produce a NAN value
214 #if (__GNUC__ == 4) && (__GNUC_MINOR__ > 2)
215 #define CAN_USE_NAN_DEFINE 1
216 #endif
217
218
219 // Checking for finiteness
220
221 inline int g_isfinite(jfloat f) { return finite(f); }
222 inline int g_isfinite(jdouble f) { return finite(f); }
223
224
225 // Wide characters
226
227 inline int wcslen(const jchar* x) { return wcslen((const wchar_t*)x); }
228
229
230 // Portability macros
231 #define PRAGMA_INTERFACE #pragma interface
232 #define PRAGMA_IMPLEMENTATION #pragma implementation
233
234 #if (__GNUC__ == 2) && (__GNUC_MINOR__ < 95)
235 #define TEMPLATE_TABLE_BUG
236 #endif
237 #if (__GNUC__ == 2) && (__GNUC_MINOR__ >= 96)
238 #define CONST_SDM_BUG
239 #endif
240
241 // Formatting.
242 #ifdef _LP64
243 # ifdef __APPLE__
244 # define FORMAT64_MODIFIER "ll"
245 # else
246 # define FORMAT64_MODIFIER "l"
247 # endif
248 #else // !_LP64
249 #define FORMAT64_MODIFIER "ll"
250 #endif // _LP64
251
252 // HACK: gcc warns about applying offsetof() to non-POD object or calculating
|