We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0ef2024 + 6335775 commit 1712f66Copy full SHA for 1712f66
UNITTESTS/target_h/platform/mbed_retarget.h
@@ -24,6 +24,14 @@
24
25
#include <time.h>
26
27
+#if defined __has_include
28
+# if __has_include (<sys/stat.h>)
29
+# include <sys/stat.h>
30
+# define HAVE_SYS_STAT_H
31
+# endif
32
+#endif
33
+
34
35
namespace mbed {
36
37
#define NAME_MAX 255
@@ -362,7 +370,7 @@ namespace mbed {
362
370
#define STDOUT_FILENO 1
363
371
#define STDERR_FILENO 2
364
372
365
-#ifndef _STAT_VER
373
+#ifndef HAVE_SYS_STAT_H
366
374
struct stat {
367
375
dev_t st_dev; ///< Device ID containing file
368
376
ino_t st_ino; ///< File serial number
0 commit comments