Porting JNI code to x64

I am trying to port some existing JNI code so that it can run on 64 bit platforms as well as the existing 32 bit platforms. The one issue I cannot seem to solve is what to do with variables which are linked to the platform size.

For example, a variable which is delared assize_t will be 32 bits on the 32 bit platforms, but will be 64 bits on the 64 bit platforms.

I cannot find any JNI defines that match this paradyme.

[448 byte] By [ctietjena] at [2007-10-3 2:47:31]
# 1

What do you mean?

Are you trying to create a single compiled instance that runs on both platforms?

Or are you trying to create a code base that, when compiled appropriately, runs on one or the other?

Java types are java types. So you use what ever it gives you. If you want to translate it to a C/C++ type then you are going to have to do something different, possibly via preprocessor directives.

jschella at 2007-7-14 20:36:18 > top of Java-index,Java Essentials,Java Programming...