COIN-OR::LEMON - Graph Library

Ticket #87: msvc-fixes.patch

File msvc-fixes.patch, 749 bytes (added by Alpar Juttner, 17 years ago)
  • demo/lgf_demo.cc

    Fix some MSVC compilation errors
    
    diff --git a/demo/lgf_demo.cc b/demo/lgf_demo.cc
    a b  
    3737
    3838int main(int argc, const char *argv[]) {
    3939  const int n = argc > 1 ? std::atoi(argv[1]) : 20;
    40   const int e = argc > 2 ? std::atoi(argv[2]) : static_cast<int>(n * log(n));
     40  const int e = argc > 2 ? std::atoi(argv[2]) : static_cast<int>(n * std::log(double(n)));
    4141  const int m = argc > 3 ? std::atoi(argv[3]) : 100;
    4242
    4343  SmartDigraph digraph;
  • lemon/graph_to_eps.h

    diff --git a/lemon/graph_to_eps.h b/lemon/graph_to_eps.h
    a b  
    2929#include<sys/time.h>
    3030#include<ctime>
    3131#else
     32#define WIN32_LEAN_AND_MEAN
     33#define NOMINMAX
    3234#include<windows.h>
    3335#endif
    3436