]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - support/sdk/c/message.h
changes for C++
[tinyos-2.x.git] / support / sdk / c / message.h
index 0bceefef0aa50d511871e5f5dc4ac98627d47f6e..8655f7b390957c1a731967e4eea80fbaa834852f 100644 (file)
 #include <stdint.h>
 #include <stdlib.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /** The type of message buffers */
 typedef struct tmsg tmsg_t;
 
@@ -145,4 +149,8 @@ float tmsg_read_float_be(tmsg_t *msg, size_t offset);
  */
 void tmsg_write_float_be(tmsg_t *msg, size_t offset, float x);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif