Fix T42226: Glibc <= 2.8 fails to build

This commit is contained in:
Campbell Barton
2014-10-15 09:23:43 +02:00
parent ab3290048c
commit 2d50e5feaa
2 changed files with 3 additions and 2 deletions

View File

@@ -35,7 +35,8 @@
#include <stdlib.h>
#ifdef __GLIBC__
/* glibc 2.8+ */
#if defined(__GLIBC__) && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 8))
# define BLI_qsort_r qsort_r
#endif

View File

@@ -32,7 +32,7 @@
#include <stdlib.h>
#ifndef __GLIBC__
#if defined(__GLIBC__) && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 8))
#include "BLI_utildefines.h"