Skip to content

Commit 93d4b69

Browse files
jmckennagithub-actions[bot]
authored andcommitted
check for PROJ6
1 parent 6eeff73 commit 93d4b69

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mapproject.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,11 @@ static void msProjErrorLogger(void * user_data,
362362
int level, const char * message)
363363
{
364364
(void)user_data;
365-
if( level == PJ_LOG_ERROR && msGetGlobalDebugLevel() >= MS_DEBUGLEVEL_VV)
365+
#if PROJ_VERSION_MAJOR >= 6
366+
if( level == PJ_LOG_ERROR && msGetGlobalDebugLevel() >= MS_DEBUGLEVEL_VV )
367+
#else
368+
if( level == PJ_LOG_ERROR )
369+
#endif
366370
{
367371
msDebug( "PROJ: Error: %s\n", message );
368372
}

0 commit comments

Comments
 (0)