Changeset 329


Ignore:
Timestamp:
Feb 21, 2012, 8:22:18 PM (9 years ago)
Author:
dmik
Message:

jdk: Typedef jint as int and jbyte as char under GCC.

This is for compatibility with C types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openjdk/jdk/src/windows/javavm/export/jni_md.h

    r286 r329  
    3131#define JNICALL __stdcall
    3232
     33#ifdef __GNUC__
     34typedef int jint;
     35typedef __int64_t jlong;
     36typedef char jbyte;
     37#else
    3338typedef long jint;
    34 #ifdef __EMX__
    35 typedef __int64_t jlong;
    36 #else
    3739typedef __int64 jlong;
     40typedef signed char jbyte;
    3841#endif
    39 typedef signed char jbyte;
    4042
    4143#ifdef __cplusplus
     
    5153inline TR jsafe_cast(TS ts) { jsafe_cast_POD_type_only(ts); return ts; }
    5254
    53 #ifdef __EMX__
     55#ifdef __GNUC__
    5456/* sizeof(jchar) = sizeof(wchar_t) in GCC but the types are not relative
    5557 * (as opposed to MSVC) so an explicit cast is required */
Note: See TracChangeset for help on using the changeset viewer.