From 837f0baa37f8e0d4dabefc8a108f1e20fec83ea9 Mon Sep 17 00:00:00 2001 From: Simon D Hughes Date: Thu, 9 Jun 2016 11:13:56 +0100 Subject: [PATCH] Fix for GCC 5.0 which appears not to define _GNU_SOURCE, define _ANSI_SOURCE and define _POSIX_SOURCE --- storage/cfstore/source/cfstore_config.h | 2 +- storage/cfstore/source/cfstore_fnmatch.h | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/storage/cfstore/source/cfstore_config.h b/storage/cfstore/source/cfstore_config.h index e30e54600f..7a4d2702ec 100644 --- a/storage/cfstore/source/cfstore_config.h +++ b/storage/cfstore/source/cfstore_config.h @@ -23,7 +23,7 @@ #define CFSTORE_CONFIG_BACKEND_UVISOR_ENABLED 0 #define CFSTORE_CONFIG_MBED_OS_VERSION 3 -/* default build config overridden by package manager configuarion +/* default build config overridden by package manager configuration * * __MBED__ * Morpheus build system (mbed-classic) defines the __MBED__ symbol diff --git a/storage/cfstore/source/cfstore_fnmatch.h b/storage/cfstore/source/cfstore_fnmatch.h index afe65f346c..5f8b0f2909 100644 --- a/storage/cfstore/source/cfstore_fnmatch.h +++ b/storage/cfstore/source/cfstore_fnmatch.h @@ -39,18 +39,11 @@ #define FNM_PATHNAME 0x02 /* Slash must be matched by slash. */ #define FNM_PERIOD 0x04 /* Period must be matched by period. */ -#if defined(_GNU_SOURCE) || !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) #define FNM_LEADING_DIR 0x08 /* Ignore / after Imatch. */ #define FNM_CASEFOLD 0x10 /* Case insensitive search. */ #define FNM_IGNORECASE FNM_CASEFOLD #define FNM_FILE_NAME FNM_PATHNAME -#endif -//todo: #include -//#include - -//__BEGIN_DECLS int fnmatch(const char *, const char *, int); -//__END_DECLS #endif /* !_FNMATCH_H_ */