From d98f18b64b9f1fb7c0a181c9cf1d33eb610e793d Mon Sep 17 00:00:00 2001 From: Oxore Date: Tue, 6 Jun 2017 06:34:40 +0700 Subject: added ifndef into headers --- src/include/common.h | 4 ++++ src/include/functions.h | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/include/common.h b/src/include/common.h index 84cbe2c..bef85f2 100644 --- a/src/include/common.h +++ b/src/include/common.h @@ -1,3 +1,6 @@ +#ifndef TCOMMON_H +#define TCOMMON_H + #include #include #include @@ -19,3 +22,4 @@ struct tCell { struct tCell activeShape[4][4], // 4x4 block of active crawling shape field_rAttr[20][10];// field cells attributess +#endif diff --git a/src/include/functions.h b/src/include/functions.h index 1816399..3c54dfd 100644 --- a/src/include/functions.h +++ b/src/include/functions.h @@ -1,3 +1,5 @@ +#ifndef TFUNCTIONS_H +#define TFUNCTIONS_H /* Prototypes of functions*/ void tKeyCtrl(); @@ -16,4 +18,6 @@ void rotateS3(); void rotateS4(); int linesRmScore(); void scoreDisplay(); -void menuTick(); \ No newline at end of file +void menuTick(); + +#endif -- cgit v1.2.3