256 257 // Wide characters 258 259 inline int wcslen(const jchar* x) { return wcslen((const wchar_t*)x); } 260 261 // Portability macros 262 #define PRAGMA_INTERFACE 263 #define PRAGMA_IMPLEMENTATION 264 #define PRAGMA_IMPLEMENTATION_(arg) 265 #define VALUE_OBJ_CLASS_SPEC : public _ValueObj 266 267 // Formatting. 268 #ifdef _LP64 269 #define FORMAT64_MODIFIER "l" 270 #else // !_LP64 271 #define FORMAT64_MODIFIER "ll" 272 #endif // _LP64 273 274 #define offset_of(klass,field) offsetof(klass,field) 275 276 #endif // SHARE_VM_UTILITIES_GLOBALDEFINITIONS_SPARCWORKS_HPP | 256 257 // Wide characters 258 259 inline int wcslen(const jchar* x) { return wcslen((const wchar_t*)x); } 260 261 // Portability macros 262 #define PRAGMA_INTERFACE 263 #define PRAGMA_IMPLEMENTATION 264 #define PRAGMA_IMPLEMENTATION_(arg) 265 #define VALUE_OBJ_CLASS_SPEC : public _ValueObj 266 267 // Formatting. 268 #ifdef _LP64 269 #define FORMAT64_MODIFIER "l" 270 #else // !_LP64 271 #define FORMAT64_MODIFIER "ll" 272 #endif // _LP64 273 274 #define offset_of(klass,field) offsetof(klass,field) 275 276 #define THREAD_LOCAL_DECL __thread 277 278 #endif // SHARE_VM_UTILITIES_GLOBALDEFINITIONS_SPARCWORKS_HPP |