Permalink
Browse files

Fix undeclared symbols in maputil.c

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 8e85fce4b15d098983b7758c80a60d9afee0cd40
Showing with 2 additions and 2 deletions.
  1. +2 −2 maputil.c
View
@@ -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) {

0 comments on commit 8e85fce

Please sign in to comment.