This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATH_SEPARATOR not platform independent


Tom Tromey wrote:
"Marco" == Marco Trudel <mtrudel@gmx.ch> writes:

Marco> I found the problem why -Djava.library.path doesn't work for win32: Marco> prims.cc uses "PATH_SEPARATOR" which is always set to ":". Thus it Marco> works only for linux. Marco> I now don't know where PATH_SEPARATOR comes from. I assumed that it's Marco> comimg from gcc/system.h. But adapting it didn't help. Marco> If someone tells me where it comes from, I'll write a patch.

Nice catch, thanks.
Change it to use _Jv_platform_path_separator and you should be ok.

Ok. How to do that? _Jv_platform_path_separator is jchar but I need char*. How to convert that correctly?



thanks Marco


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]