# 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
|
|
26 | 26 | #include <lemon/lp_base.h> |
27 | 27 | |
28 | 28 | // forward declaration |
| 29 | #if GLP_MAJOR_VERSION < 4 || (GLP_MAJOR_VERSION == 4 && GLP_MINOR_VERSION < 41) |
| 30 | |
29 | 31 | #if !defined _GLP_PROB && !defined GLP_PROB |
30 | 32 | #define _GLP_PROB |
31 | 33 | #define GLP_PROB |
32 | 34 | typedef struct { double _opaque_prob; } glp_prob; |
33 | | /* LP/MIP problem object */ |
34 | 35 | #endif |
35 | 36 | |
| 37 | #else |
| 38 | |
| 39 | #ifndef GLPAPI_H |
| 40 | #define GLPAPI_H |
| 41 | typedef struct { double _opaque_prob[100]; } glp_prob; |
| 42 | #endif |
| 43 | |
| 44 | #endif |
| 45 | |
| 46 | |
36 | 47 | namespace lemon { |
37 | 48 | |
38 | 49 | |