Mercurial > hg > graal-compiler
comparison src/cpu/x86/vm/jni_x86.h @ 7623:203f64878aab
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
author | hseigel |
---|---|
date | Thu, 17 Jan 2013 10:25:16 -0500 |
parents | 436b4a3231bf |
children | 58bb870a0cbd |
comparison
equal
deleted
inserted
replaced
7620:e94ed1591b42 | 7623:203f64878aab |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this | 7 * published by the Free Software Foundation. Oracle designates this |
36 #define JNIIMPORT | 36 #define JNIIMPORT |
37 #endif | 37 #endif |
38 | 38 |
39 #define JNICALL | 39 #define JNICALL |
40 typedef int jint; | 40 typedef int jint; |
41 #if defined(_LP64) && !defined(__APPLE__) | 41 #if defined(_LP64) |
42 typedef long jlong; | 42 typedef long jlong; |
43 #else | 43 #else |
44 /* | |
45 * On _LP64 __APPLE__ "long" and "long long" are both 64 bits, | |
46 * but we use the "long long" typedef to avoid complaints from | |
47 * the __APPLE__ compiler about fprintf formats. | |
48 */ | |
49 typedef long long jlong; | 44 typedef long long jlong; |
50 #endif | 45 #endif |
51 | 46 |
52 #else | 47 #else |
53 #define JNIEXPORT __declspec(dllexport) | 48 #define JNIEXPORT __declspec(dllexport) |