Changeset 7065334 in nscp


Ignore:
Timestamp:
08/22/10 15:21:34 (3 years ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2
Children:
5e12ba6
Parents:
c146f89
Message:

Fixed name resolution for *nix systems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • service/NSCPlugin.h

    r497b779 r7065334  
    171171      file = file.substr(0, pos); 
    172172    } 
     173    pos = file.find_last_of(_T("/\\")); 
     174    if (pos != std::wstring::npos) { 
     175      file = file.substr(pos); 
     176    } 
     177#ifndef WIN32 
     178    if (file.substr(0,3) == _T("lib")) 
     179      file = file.substr(3); 
     180#endif 
    173181    return file; 
    174182  } 
Note: See TracChangeset for help on using the changeset viewer.