add missing #ifndef to protect header files
[protos/xbee-avr.git] / xbee.h
diff --git a/xbee.h b/xbee.h
index 0efdb22..81097cf 100644 (file)
--- a/xbee.h
+++ b/xbee.h
@@ -25,6 +25,9 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#ifndef _XBEE_H_
+#define _XBEE_H_
+
 /* Callback when receiving data on a specific channel. The arguments
  * of the function are the xbee device, the channel ID, the type of
  * the frame (example: XBEE_TYPE_ATRESP), the pointer to the frame,
@@ -86,3 +89,5 @@ int xbee_read(struct xbee_dev *dev);
 
 /* process all data in queue */
 int xbee_process_queue(struct xbee_dev *dev);
+
+#endif /* _XBEE_H_ */