Skip to content

Commit 1a2209b

Browse files
More MinGW compatibility
1 parent f77a6a7 commit 1a2209b

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

Utils/FileSystem.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
#include <unistd.h>
1414
#endif
1515

16+
#if (defined(__MINGW32__) || defined(__MINGW64__))
17+
#include <sys/stat.h>
18+
#endif
19+
20+
1621
namespace Utilities
1722
{
1823
/** \brief This class implements different file system functions.

Utils/IndexedFaceMesh.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ IndexedFaceMesh& IndexedFaceMesh::operator=(IndexedFaceMesh const& other)
1818
for (size_t i(0u); i < m_faces.size(); ++i)
1919
{
2020
m_faces[i].m_edges = new unsigned int[m_verticesPerFace];
21-
#if defined(WIN32) || defined(_WIN32) || defined(WIN64)
21+
#if defined(_MSC_VER)
2222
std::copy(other.m_faces[i].m_edges, other.m_faces[i].m_edges + m_verticesPerFace,
2323
stdext::unchecked_array_iterator<unsigned int*>(m_faces[i].m_edges));
2424
#else

Utils/IndexedFaceMesh.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ namespace Utilities
7575
{
7676
m_numEdges = other.m_numEdges;
7777
m_eIndices = new unsigned int[m_numEdges];
78-
#if defined(WIN32) || defined(_WIN32) || defined(WIN64)
78+
#if defined(_MSC_VER)
7979
std::copy(other.m_eIndices, other.m_eIndices + m_numEdges,
8080
stdext::unchecked_array_iterator<unsigned int*>(m_eIndices));
8181
#else

0 commit comments

Comments
 (0)