Skip to content

Commit

Permalink
Fix undeclared symbols in maputil.c
Browse files Browse the repository at this point in the history
Getting the following build error, I think the fix is to use MS_TRUE and MS_FALSE.

    /tmp/mapserver/maputil.c: In function ‘msEvalTextExpressionJSonEscape’:
    /tmp/mapserver/maputil.c:685:54: error: ‘TRUE’ undeclared (first use in this function)
    
    /tmp/mapserver/maputil.c: In function ‘msEvalTextExpression’:
    /tmp/mapserver/maputil.c:690:54: error: ‘FALSE’ undeclared (first use in this function)
  • Loading branch information
pagameba committed Jun 9, 2014
1 parent 5e39967 commit 8e85fce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions maputil.c
Original file line number Diff line number Diff line change
Expand Up @@ -682,12 +682,12 @@ char *msEvalTextExpressionInternal(expressionObj *expr, shapeObj *shape, int bJS

char *msEvalTextExpressionJSonEscape(expressionObj *expr, shapeObj *shape)
{
return msEvalTextExpressionInternal(expr, shape, TRUE);
return msEvalTextExpressionInternal(expr, shape, MS_TRUE);
}

char *msEvalTextExpression(expressionObj *expr, shapeObj *shape)
{
return msEvalTextExpressionInternal(expr, shape, FALSE);
return msEvalTextExpressionInternal(expr, shape, MS_FALSE);
}

char* msShapeGetLabelAnnotation(layerObj *layer, shapeObj *shape, labelObj *lbl) {
Expand Down

0 comments on commit 8e85fce

Please sign in to comment.