array: Add fallback for qsort_r using thread-local value

Cygwin for example does not support qsort_r.
This commit is contained in:
Tobias Brunner
2014-02-12 14:34:33 +01:00
parent 190a278854
commit b3613c49a2
4 changed files with 50 additions and 3 deletions
+12
View File
@@ -251,4 +251,16 @@ void array_destroy_function(array_t *array, array_callback_t cb, void *user);
*/
void array_destroy_offset(array_t *array, size_t offset);
/**
* Required on some platforms to initialize thread local value to implement
* array_sort().
*/
void arrays_init();
/**
* Destroys the thread local value if required.
*/
void arrays_deinit();
#endif /** ARRAY_H_ @}*/