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

github.com/cxong/tinydir.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tinydir.h')
-rw-r--r--tinydir.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tinydir.h b/tinydir.h
index 9dd60b7..29617fe 100644
--- a/tinydir.h
+++ b/tinydir.h
@@ -115,6 +115,9 @@ extern "C" {
# define _TINYDIR_FUNC static inline
#endif
+/* readdir_r usage; define TINYDIR_USE_READDIR_R to use it (if supported) */
+#ifdef TINYDIR_USE_READDIR_R
+
/* readdir_r is a POSIX-only function, and may not be available under various
* environments/settings, e.g. MinGW. Use readdir fallback */
#if _POSIX_C_SOURCE >= 1 || _XOPEN_SOURCE || _BSD_SOURCE || _SVID_SOURCE ||\
@@ -139,6 +142,8 @@ extern "C" {
# define _TINYDIR_USE_READDIR
#endif
+#endif
+
/* MINGW32 has two versions of dirent, ASCII and UNICODE*/
#ifndef _MSC_VER
#if (defined __MINGW32__) && (defined _UNICODE)