From a562dfb2ff3a43301f6fba8d5f6d13a4b7909aa2 Mon Sep 17 00:00:00 2001 From: erg Date: Wed, 15 Aug 2007 21:19:57 +0000 Subject: [PATCH] Fix so that libvpsc can be built on Windows. --- lib/vpsc/csolve_VPSC.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lib/vpsc/csolve_VPSC.h b/lib/vpsc/csolve_VPSC.h index e916bb76b..1bbacbea8 100644 --- a/lib/vpsc/csolve_VPSC.h +++ b/lib/vpsc/csolve_VPSC.h @@ -22,15 +22,27 @@ #ifdef __cplusplus extern "C" { #endif +#ifdef __cplusplus +class Variable; +#else typedef struct Variable Variable; +#endif Variable* newVariable(int id, double desiredPos, double weight); void setVariableDesiredPos(Variable *, double desiredPos); double getVariablePos(Variable*); +#ifdef __cplusplus +class Constraint; +#else typedef struct Constraint Constraint; +#endif Constraint* newConstraint(Variable* left, Variable* right, double gap); +#ifdef __cplusplus +class VPSC; +#else typedef struct VPSC VPSC; +#endif VPSC* newVPSC(int n, Variable* vs[], int m, Constraint* cs[]); void deleteVPSC(VPSC*); void deleteConstraint(Constraint*); @@ -53,7 +65,11 @@ int genYConstraints(int n, boxf[], Variable** vs, Constraint*** cs); void satisfyVPSC(VPSC*); void solveVPSC(VPSC*); +#ifdef __cplusplus +class IncVPSC; +#else typedef struct IncVPSC IncVPSC; +#endif VPSC* newIncVPSC(int n, Variable* vs[], int m, Constraint* cs[]); void splitIncVPSC(IncVPSC*); int getSplitCnt(IncVPSC *vpsc); -- 2.40.0