COIN-OR::LEMON - Graph Library

Ticket #337: 5ac08ebddf94.patch

File 5ac08ebddf94.patch, 851 bytes (added by Balazs Dezso, 15 years ago)
  • lemon/glpk.h

    # HG changeset patch
    # User Balazs Dezso <deba@inf.elte.hu>
    # Date 1264706428 -3600
    # Node ID 5ac08ebddf94314d2ba7aebcafafa08db24e14e6
    # Parent  f903263902f6831f14205dab9f1d00cb5275e171
    New forward declaration in GLPK (#337)
    
    diff -r f903263902f6 -r 5ac08ebddf94 lemon/glpk.h
    a b  
    2626#include <lemon/lp_base.h>
    2727
    2828// forward declaration
     29#if GLP_MAJOR_VERSION < 4 || (GLP_MAJOR_VERSION == 4 && GLP_MINOR_VERSION < 41)
     30
    2931#if !defined _GLP_PROB && !defined GLP_PROB
    3032#define _GLP_PROB
    3133#define GLP_PROB
    3234typedef struct { double _opaque_prob; } glp_prob;
    33 /* LP/MIP problem object */
    3435#endif
    3536
     37#else
     38
     39#ifndef GLPAPI_H
     40#define GLPAPI_H
     41typedef struct { double _opaque_prob[100]; } glp_prob;
     42#endif
     43
     44#endif
     45
     46
    3647namespace lemon {
    3748
    3849