aboutsummaryrefslogtreecommitdiff
path: root/src/share/vm/utilities/globalDefinitions_gcc.hpp
diff options
context:
space:
mode:
authorhseigel <none@none>2013-01-17 10:25:16 -0500
committerhseigel <none@none>2013-01-17 10:25:16 -0500
commit81b12ebd7587a930cf76804122a0bb5e48615670 (patch)
tree7387225589da5e72325b85a7ef7f23194d6b0070 /src/share/vm/utilities/globalDefinitions_gcc.hpp
parentbbbd227626facbd3aedd49490177b09c5429cb20 (diff)
7102489: RFE: cleanup jlong typedef on __APPLE__and _LLP64 systems.
Summary: Define jlong as long on all LP64 platforms and add JLONG_FORMAT macro. Reviewed-by: dholmes, coleenp, mikael, kvn
Diffstat (limited to 'src/share/vm/utilities/globalDefinitions_gcc.hpp')
-rw-r--r--src/share/vm/utilities/globalDefinitions_gcc.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/share/vm/utilities/globalDefinitions_gcc.hpp b/src/share/vm/utilities/globalDefinitions_gcc.hpp
index e103816de..a69708f8c 100644
--- a/src/share/vm/utilities/globalDefinitions_gcc.hpp
+++ b/src/share/vm/utilities/globalDefinitions_gcc.hpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -306,4 +306,8 @@ inline int wcslen(const jchar* x) { return wcslen((const wchar_t*)x); }
#endif
#define offsetof(klass,field) offset_of(klass,field)
+#if defined(_LP64) && defined(__APPLE__)
+#define JLONG_FORMAT "%ld"
+#endif // _LP64 && __APPLE__
+
#endif // SHARE_VM_UTILITIES_GLOBALDEFINITIONS_GCC_HPP