[mapserver-commits] r10377 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Wed Jul 21 08:50:02 EDT 2010
Author: warmerdam
Date: 2010-07-21 12:50:02 +0000 (Wed, 21 Jul 2010)
New Revision: 10377
Modified:
trunk/mapserver/mapobject.c
Log:
use alternative to S_ISDIR on windows
Modified: trunk/mapserver/mapobject.c
===================================================================
--- trunk/mapserver/mapobject.c 2010-07-18 15:05:26 UTC (rev 10376)
+++ trunk/mapserver/mapobject.c 2010-07-21 12:50:02 UTC (rev 10377)
@@ -176,6 +176,10 @@
+ strlen(value) + 10);
sprintf( extended_path, "%s/%s", map->mappath, value );
+#ifndef S_ISDIR
+# define S_ISDIR(x) ((x) & S_IFDIR)
+#endif
+
if( stat( extended_path, &stat_buf ) == 0
&& S_ISDIR(stat_buf.st_mode) )
msSetPROJ_LIB( extended_path );
More information about the mapserver-commits
mailing list