Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/extern
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2011-09-10 18:55:14 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2011-09-10 18:55:14 +0400
commit4e9381bc359b8734b7df48753957266af622cd56 (patch)
tree32c9eae75db083ad3f800bd695cbba680f7f8907 /extern
parent782a7a36776897b7b7a05e0c412985d0ce4077a7 (diff)
Fixed for navmesh on FreeBSD. Oatch by sambler, thanks!
Diffstat (limited to 'extern')
-rw-r--r--extern/recastnavigation/Recast/Source/RecastMeshDetail.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/extern/recastnavigation/Recast/Source/RecastMeshDetail.cpp b/extern/recastnavigation/Recast/Source/RecastMeshDetail.cpp
index 8fc3fa833f9..dab94eaa775 100644
--- a/extern/recastnavigation/Recast/Source/RecastMeshDetail.cpp
+++ b/extern/recastnavigation/Recast/Source/RecastMeshDetail.cpp
@@ -97,7 +97,7 @@ static int circumCircle(const float xp, const float yp,
#if defined(_MSC_VER)
static int ptcmp(void* up, const void *v1, const void *v2)
-#elif defined(__APPLE__)
+#elif defined(__APPLE__) || defined(__FreeBSD__)
static int ptcmp(void* up, const void *v1, const void *v2)
#else
static int ptcmp(const void *v1, const void *v2, void* up)
@@ -124,7 +124,7 @@ static void delaunay(const int nv, float *verts, rcIntArray& idx, rcIntArray& tr
idx[i] = i;
#if defined(_MSC_VER)
qsort_s(&idx[0], idx.size(), sizeof(int), ptcmp, verts);
-#elif defined(__APPLE__)
+#elif defined(__APPLE__) || defined(__FreeBSD__)
qsort_r(&idx[0], idx.size(), sizeof(int), verts, ptcmp);
#else
qsort_r(&idx[0], idx.size(), sizeof(int), ptcmp, verts);