diff options
author | Oxore <oxore@protonmail.com> | 2017-06-06 06:34:40 +0700 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2017-06-06 06:34:40 +0700 |
commit | d98f18b64b9f1fb7c0a181c9cf1d33eb610e793d (patch) | |
tree | ba1a42be0c7913a420f12790a520eaaa00cddc4a | |
parent | 5380835ad7f6856ca6c2658a4bc10cb678ca597e (diff) |
added ifndef into headers
-rw-r--r-- | src/include/common.h | 4 | ||||
-rw-r--r-- | src/include/functions.h | 6 |
2 files changed, 9 insertions, 1 deletions
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 <SFML/Audio.h> #include <SFML/Graphics.h> #include <SFML/System.h> @@ -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 |