[Yaffs] [PATCH 13/20] C++ compatibility.

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Xiangfu Liu
Date:  
To: yaffs
CC: sebastien
Old-Topics: [Yaffs] [PATCH 12/20] Flush during close (similar to yaffs_close()).
New-Topics: [Yaffs] [PATCH 14/20] add rtems-mkyaffs2image support
Subject: [Yaffs] [PATCH 13/20] C++ compatibility.
From: Sebastian Huber <>

---
 rtems/rtems_yaffs.h |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)


diff --git a/rtems/rtems_yaffs.h b/rtems/rtems_yaffs.h
index b55001d..dce8204 100644
--- a/rtems/rtems_yaffs.h
+++ b/rtems/rtems_yaffs.h
@@ -24,13 +24,14 @@
#include <rtems.h>
#include <rtems/fs.h>

-#include "yportenv.h"
-#include "yaffs_guts.h"
-
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

+/* Must be inside the extern "C" */
+#include "yportenv.h"
+#include "yaffs_guts.h"
+
/**
* @defgroup rtems_yaffs YAFFS Support for RTEMS
*
--
1.7.4.1