COIN-OR::LEMON - Graph Library

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/graph_to_eps.h

    r313 r492  
    33 * This file is a part of LEMON, a generic C++ optimization library.
    44 *
    5  * Copyright (C) 2003-2008
     5 * Copyright (C) 2003-2009
    66 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
    77 * (Egervary Research Group on Combinatorial Optimization, EGRES).
     
    3030#include<ctime>
    3131#else
    32 #define WIN32_LEAN_AND_MEAN
    33 #define NOMINMAX
    34 #include<windows.h>
     32#include<lemon/bits/windows.h>
    3533#endif
    3634
     
    680678
    681679    {
     680      os << "%%CreationDate: ";
    682681#ifndef WIN32
    683682      timeval tv;
     
    686685      char cbuf[26];
    687686      ctime_r(&tv.tv_sec,cbuf);
    688       os << "%%CreationDate: " << cbuf;
     687      os << cbuf;
    689688#else
    690       SYSTEMTIME time;
    691       char buf1[11], buf2[9], buf3[5];
    692 
    693       GetSystemTime(&time);
    694       if (GetDateFormat(LOCALE_USER_DEFAULT, 0, &time,
    695                         "ddd MMM dd", buf1, 11) &&
    696           GetTimeFormat(LOCALE_USER_DEFAULT, 0, &time,
    697                         "HH':'mm':'ss", buf2, 9) &&
    698           GetDateFormat(LOCALE_USER_DEFAULT, 0, &time,
    699                                 "yyyy", buf3, 5)) {
    700         os << "%%CreationDate: " << buf1 << ' '
    701            << buf2 << ' ' << buf3 << std::endl;
    702       }
     689      os << bits::getWinFormattedDate();
    703690#endif
    704691    }
     692    os << std::endl;
    705693
    706694    if (_autoArcWidthScale) {
Note: See TracChangeset for help on using the changeset viewer.