Skip to content

Commit

Permalink
Fix build issues with OGR disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
tbonfort committed Nov 16, 2015
1 parent e47e642 commit ab2a612
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mapimageio.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ int saveAsJPEG(mapObj *map, rasterBufferObj *rb, streamInfo *info,
/* If the user doesn't provide a value for JPEGMEM, we want to be sure */
/* that at least the image size will be used before creating the temporary file */
cinfo.mem->max_memory_to_use =
MAX(cinfo.mem->max_memory_to_use, cinfo.input_components * rb->width * rb->height);
MS_MAX(cinfo.mem->max_memory_to_use, cinfo.input_components * rb->width * rb->height);
}
}

Expand Down
1 change: 1 addition & 0 deletions mapogcfilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include "mapowscommon.h"
#include "maptime.h"
#include "mapows.h"
#include <ctype.h>

static int FLTHasUniqueTopLevelDuringFilter(FilterEncodingNode *psFilterNode);

Expand Down
2 changes: 2 additions & 0 deletions mapogr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1318,6 +1318,7 @@ static int msOGRFileClose(layerObj *layer, msOGRFileInfo *psInfo )

return MS_SUCCESS;
}
#endif /* USE_OGR */

/************************************************************************/
/* msOGREscapeSQLParam */
Expand Down Expand Up @@ -1345,6 +1346,7 @@ static char *msOGREscapeSQLParam(layerObj *layer, const char *pszString)
#endif /* USE_OGR */
}

#ifdef USE_OGR
/**********************************************************************
* msOGRTranslateMsExpressionToOGRSQL()
*
Expand Down

0 comments on commit ab2a612

Please sign in to comment.