COIN-OR::LEMON - Graph Library

Ignore:
Location:
lemon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lemon/graph_to_eps.h

    r556 r463  
    3030#include<ctime>
    3131#else
    32 #ifndef WIN32_LEAN_AND_MEAN
    3332#define WIN32_LEAN_AND_MEAN
    34 #endif
    35 #ifndef NOMINMAX
    3633#define NOMINMAX
    37 #endif
    3834#include<windows.h>
    3935#endif
     
    693689#else
    694690      SYSTEMTIME time;
     691      char buf1[11], buf2[9], buf3[5];
     692
    695693      GetSystemTime(&time);
    696 #if defined(_MSC_VER) && (_MSC_VER < 1500)
    697       LPWSTR buf1, buf2, buf3;
    698694      if (GetDateFormat(LOCALE_USER_DEFAULT, 0, &time,
    699                         L"ddd MMM dd", buf1, 11) &&
     695                        "ddd MMM dd", buf1, 11) &&
    700696          GetTimeFormat(LOCALE_USER_DEFAULT, 0, &time,
    701                         L"HH':'mm':'ss", buf2, 9) &&
     697                        "HH':'mm':'ss", buf2, 9) &&
    702698          GetDateFormat(LOCALE_USER_DEFAULT, 0, &time,
    703                         L"yyyy", buf3, 5)) {
     699                                "yyyy", buf3, 5)) {
    704700        os << "%%CreationDate: " << buf1 << ' '
    705701           << buf2 << ' ' << buf3 << std::endl;
    706702      }
    707 #else
    708         char buf1[11], buf2[9], buf3[5];
    709         if (GetDateFormat(LOCALE_USER_DEFAULT, 0, &time,
    710                           "ddd MMM dd", buf1, 11) &&
    711             GetTimeFormat(LOCALE_USER_DEFAULT, 0, &time,
    712                           "HH':'mm':'ss", buf2, 9) &&
    713             GetDateFormat(LOCALE_USER_DEFAULT, 0, &time,
    714                           "yyyy", buf3, 5)) {
    715           os << "%%CreationDate: " << buf1 << ' '
    716              << buf2 << ' ' << buf3 << std::endl;
    717         }
    718 #endif
    719703#endif
    720704    }
  • lemon/time_measure.h

    r556 r463  
    2525
    2626#ifdef WIN32
    27 #ifndef WIN32_LEAN_AND_MEAN
    2827#define WIN32_LEAN_AND_MEAN
    29 #endif
    30 #ifndef NOMINMAX
    3128#define NOMINMAX
    32 #endif
    3329#include <windows.h>
    3430#include <cmath>
    3531#else
    36 #include <unistd.h>
    3732#include <sys/times.h>
    3833#include <sys/time.h>
Note: See TracChangeset for help on using the changeset viewer.