From: andreaskoepke Date: Tue, 27 Feb 2007 14:53:54 +0000 (+0000) Subject: add include guards X-Git-Tag: tinyos/2.0.1~157 X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=commitdiff_plain;h=a6f47361665ef07bf5efe63928a93b549c67719d;hp=9e47a9dcfd321aac901d9e5b52699ab12e89f30e;p=tinyos-2.x.git add include guards --- diff --git a/tos/platforms/eyesIFX/crc.h b/tos/platforms/eyesIFX/crc.h index 8d38a48f..ef4c43be 100644 --- a/tos/platforms/eyesIFX/crc.h +++ b/tos/platforms/eyesIFX/crc.h @@ -38,6 +38,8 @@ * @author Andreas Koepke * @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 diff --git a/tos/platforms/eyesIFX/lf-crc.h b/tos/platforms/eyesIFX/lf-crc.h index 8d38a48f..ef4c43be 100644 --- a/tos/platforms/eyesIFX/lf-crc.h +++ b/tos/platforms/eyesIFX/lf-crc.h @@ -38,6 +38,8 @@ * @author Andreas Koepke * @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