mbed library sources

Fork of mbed-src by mbed official

Revision:
85:e1a8e879a6a9
Parent:
13:0645d8841f51
Child:
221:8276e3a4886f
diff -r f54042cbc282 -r e1a8e879a6a9 common/rtc_time.c
--- a/common/rtc_time.c	Mon Feb 03 09:30:05 2014 +0000
+++ b/common/rtc_time.c	Fri Feb 07 18:00:11 2014 +0000
@@ -19,11 +19,15 @@
 #include "rtc_time.h"
 #include "us_ticker_api.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif 
 #if defined (__ICCARM__)
 time_t __time32(time_t *timer)
 #else
 time_t time(time_t *timer)
 #endif
+
 {
 #if DEVICE_RTC
     if (!(rtc_isenabled())) {
@@ -53,3 +57,7 @@
     t /= 1000000 / CLOCKS_PER_SEC; // convert to processor time
     return t;
 }
+
+#ifdef __cplusplus
+}
+#endif