]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - support/sdk/c/serialsource.h
changes for C++
[tinyos-2.x.git] / support / sdk / c / serialsource.h
index c144852264bbd5a02b1ac38930ef1c45d0fa9941..28ba5bdc6ccfde284a82729d3e835b1b790754be 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef SERIALSOURCE_H
 #define SERIALSOURCE_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef struct serial_source *serial_source;
 
 typedef enum {
@@ -70,4 +74,8 @@ int platform_baud_rate(char *platform_name);
      atoi(platform_name).
 */
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif