]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
add include guards
authorandreaskoepke <andreaskoepke>
Tue, 27 Feb 2007 14:53:54 +0000 (14:53 +0000)
committerandreaskoepke <andreaskoepke>
Tue, 27 Feb 2007 14:53:54 +0000 (14:53 +0000)
tos/platforms/eyesIFX/crc.h
tos/platforms/eyesIFX/lf-crc.h

index 8d38a48f1629a3a9c420bd01592d324b7d6df599..ef4c43bea7ec2e5f0eb2c65e83fc344192c28f42 100644 (file)
@@ -38,6 +38,8 @@
  * @author Andreas Koepke <koepke@tkn.tu-berlin.de> 
  * @author Paul Curtis (pointed out this implementation, which is believed to be public domain)
  */
+#ifndef CRC_H
+#define CRC_H
 
 uint16_t crcByte(uint16_t crc, uint8_t b) {
   crc = (uint8_t)(crc >> 8) | (crc << 8);
@@ -47,3 +49,5 @@ uint16_t crcByte(uint16_t crc, uint8_t b) {
   crc ^= (crc & 0xff) << 5;
   return crc;
 }
+
+#endif
index 8d38a48f1629a3a9c420bd01592d324b7d6df599..ef4c43bea7ec2e5f0eb2c65e83fc344192c28f42 100644 (file)
@@ -38,6 +38,8 @@
  * @author Andreas Koepke <koepke@tkn.tu-berlin.de> 
  * @author Paul Curtis (pointed out this implementation, which is believed to be public domain)
  */
+#ifndef CRC_H
+#define CRC_H
 
 uint16_t crcByte(uint16_t crc, uint8_t b) {
   crc = (uint8_t)(crc >> 8) | (crc << 8);
@@ -47,3 +49,5 @@ uint16_t crcByte(uint16_t crc, uint8_t b) {
   crc ^= (crc & 0xff) << 5;
   return crc;
 }
+
+#endif