diff options
author | Cong <congusbongus@gmail.com> | 2016-03-30 15:44:33 +0300 |
---|---|---|
committer | Cong <congusbongus@gmail.com> | 2016-03-30 15:44:33 +0300 |
commit | c86d5c1431c8a8881bf8c37e315e2e7386c5b8ab (patch) | |
tree | a7a661bad7c262a82437f294ecfe519ae8ac7f45 /tinydir.h | |
parent | ba60c3f540539bbe20e054f2ad33236f8d2a105e (diff) |
Rework STDC_VERSION macro check to default to C99+
Diffstat (limited to 'tinydir.h')
-rwxr-xr-x | tinydir.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -60,10 +60,10 @@ extern "C" { #ifdef _MSC_VER # define _TINYDIR_FUNC static __inline -#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L -#define _TINYDIR_FUNC static inline -#else +#elif !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L # define _TINYDIR_FUNC static __inline__ +#else +# define _TINYDIR_FUNC static inline #endif /* MinGW does not define readdir_r (yet); use readdir fallback */ |