Changeset 20915

Show
Ignore:
Timestamp:
10/07/08 19:48:20 (6 weeks ago)
Author:
mattn
Message:

does not work on win32.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/cplusplus/llv8call/trunk/v8ext/v8ext.cc

    r20787 r20915  
    143143    String::Utf8Value libname(args[0]); 
    144144    String::Utf8Value _libpath(args.This()->Get(String::New("LibraryPath"))); 
    145     char *libpath = *_libpath; 
     145    std::string slibpath = std::string((char*) *_libpath); 
     146    slibpath += PATHSEP; 
     147    char* libpath = (char*) slibpath.c_str(); 
    146148 
    147149    char* p; 
    148     while ((p = strchr(libpath, ':')) > 0) { 
     150    while ((p = strchr(libpath, PATHSEP[0])) > 0) { 
    149151        *p = '\0'; 
    150152