From febf1613c15417bcbc295ec1d9d9628366820529 Mon Sep 17 00:00:00 2001 From: David Lin Date: Fri, 17 Apr 2020 18:11:29 +0800 Subject: [PATCH] Update tos_ffconf.h --- components/fs/fatfs/wrapper/include/tos_ffconf.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/components/fs/fatfs/wrapper/include/tos_ffconf.h b/components/fs/fatfs/wrapper/include/tos_ffconf.h index 2906aeac..8138a989 100644 --- a/components/fs/fatfs/wrapper/include/tos_ffconf.h +++ b/components/fs/fatfs/wrapper/include/tos_ffconf.h @@ -1,7 +1,13 @@ /*---------------------------------------------------------------------------/ / FatFs Functional Configurations /---------------------------------------------------------------------------*/ +#ifndef _FFCONF_DEFINED +#define _FFCONF_DEFINED +#ifdef __cplusplus +extern "C" { +#endif + #define FFCONF_DEF 86604 /* Revision ID */ /*---------------------------------------------------------------------------/ @@ -284,5 +290,9 @@ / included somewhere in the scope of ff.h. */ +#ifdef __cplusplus +} +#endif +#endif/* _FFCONF_DEFINED */ /*--- End of configuration options ---*/