Revision: 65316
http://sourceforge.net/p/brlcad/code/65316
Author: starseeker
Date: 2015-06-16 01:52:03 +0000 (Tue, 16 Jun 2015)
Log Message:
-----------
Apparently mingw doesn't provide readdir_r
Modified Paths:
--------------
brlcad/trunk/src/other/openNURBS/opennurbs_archive.cpp
Modified: brlcad/trunk/src/other/openNURBS/opennurbs_archive.cpp
===================================================================
--- brlcad/trunk/src/other/openNURBS/opennurbs_archive.cpp 2015-06-16
01:24:35 UTC (rev 65315)
+++ brlcad/trunk/src/other/openNURBS/opennurbs_archive.cpp 2015-06-16
01:52:03 UTC (rev 65316)
@@ -15348,6 +15348,16 @@
for(;;)
{
current_file_attributes = 0;
+#if defined(__MINGW32__)
+ struct dirent* dp = readdir(m_dir);
+ if ( 0 == dp )
+ break;
+ if ( 0 == dp->d_name[0] )
+ break;
+
+ if ( IsDotOrDotDotDir(dp->d_name) )
+ continue;
+#else
struct dirent* dp = 0;
int readdir_errno = readdir_r(m_dir, &m_dirent, &dp);
if ( 0 != readdir_errno )
@@ -15359,6 +15369,7 @@
if ( IsDotOrDotDotDir(m_dirent.d_name) )
continue;
+#endif
memset( current_name, 0, sizeof(current_name) );
ON_ConvertUTF8ToWideChar(
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits