COIN-OR::LEMON - Graph Library

Changeset 480:70aa52d30f13 in lemon-1.2 for lemon


Ignore:
Timestamp:
02/10/09 15:43:39 (15 years ago)
Author:
Janos Tapolcai <tapolcai@…>
Branch:
default
Phase:
public
Message:

Compilation bug fixed in graph_to_eps.h with VS2005 (#214)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/graph_to_eps.h

    r313 r480  
    689689#else
    690690      SYSTEMTIME time;
    691       char buf1[11], buf2[9], buf3[5];
    692 
    693691      GetSystemTime(&time);
     692#if defined(_MSC_VER) && (_MSC_VER < 1500)
     693      LPWSTR buf1, buf2, buf3;
    694694      if (GetDateFormat(LOCALE_USER_DEFAULT, 0, &time,
    695                         "ddd MMM dd", buf1, 11) &&
     695                        L"ddd MMM dd", buf1, 11) &&
    696696          GetTimeFormat(LOCALE_USER_DEFAULT, 0, &time,
    697                         "HH':'mm':'ss", buf2, 9) &&
     697                        L"HH':'mm':'ss", buf2, 9) &&
    698698          GetDateFormat(LOCALE_USER_DEFAULT, 0, &time,
    699                                 "yyyy", buf3, 5)) {
     699                        L"yyyy", buf3, 5)) {
    700700        os << "%%CreationDate: " << buf1 << ' '
    701701           << buf2 << ' ' << buf3 << std::endl;
    702702      }
     703#else
     704        char buf1[11], buf2[9], buf3[5];
     705        if (GetDateFormat(LOCALE_USER_DEFAULT, 0, &time,
     706                          "ddd MMM dd", buf1, 11) &&
     707            GetTimeFormat(LOCALE_USER_DEFAULT, 0, &time,
     708                          "HH':'mm':'ss", buf2, 9) &&
     709            GetDateFormat(LOCALE_USER_DEFAULT, 0, &time,
     710                          "yyyy", buf3, 5)) {
     711          os << "%%CreationDate: " << buf1 << ' '
     712             << buf2 << ' ' << buf3 << std::endl;
     713        }
     714#endif
    703715#endif
    704716    }
Note: See TracChangeset for help on using the changeset viewer.