ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/Search/Search.cpp
(Generate patch)

Comparing trunk/Search/Search.cpp (file contents):
Revision 45 by douglas, 2003-01-29T21:23:17-08:00 vs.
Revision 56 by douglas, 2003-02-07T17:25:02-08:00

# Line 386 | Line 386 | string platform()
386  
387   void usage()
388   {
389 + #ifdef _WIN32
390 +        OSVERSIONINFO* computer = new OSVERSIONINFO;
391 +        computer->dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
392 +        GetVersionEx(computer);
393 +
394 +        string program = ::program;
395 +        if (computer->dwPlatformId != VER_PLATFORM_WIN32_NT)
396 +        {
397 +                program = "Search";
398 +        }
399 +
400 +        delete computer;
401 + #endif // _WIN32
402 +
403          string tab(8 + program.length(), ' ');
404  
405          cout << "Usage: " << program << " [index ...] [-P page] [-h header] [-b bo"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines