From d5cf4a6a6ac7ac6e6e7198a78b83db42098d61b1 Mon Sep 17 00:00:00 2001 From: Deepika Date: Mon, 8 Jan 2018 10:42:41 -0600 Subject: [PATCH] fsblkcnt_t is available in GCC, but adding it for all compilers --- platform/mbed_retarget.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/mbed_retarget.h b/platform/mbed_retarget.h index 391ae192ec..c3e6cbd54d 100644 --- a/platform/mbed_retarget.h +++ b/platform/mbed_retarget.h @@ -30,6 +30,7 @@ * target embedded systems */ typedef signed int ssize_t; ///< Signed size type, usually encodes negative errors typedef signed long off_t; ///< Offset in a data stream +typedef unsigned long long fsblkcnt_t; ///< Count of file system blocks #if defined(__ARMCC_VERSION) || !defined(__GNUC__) typedef unsigned int mode_t; ///< Mode for opening files typedef unsigned int dev_t; ///< Device ID type @@ -37,7 +38,6 @@ typedef unsigned long ino_t; ///< File serial number typedef unsigned int nlink_t; ///< Number of links to a file typedef unsigned int uid_t; ///< User ID typedef unsigned int gid_t; ///< Group ID -typedef unsigned long long fsblkcnt_t; ///< Count of file system blocks #endif #define O_RDONLY 0 ///< Open for reading