From f4beeeab78d3d6f97ceee511a795a92d0246cf5c Mon Sep 17 00:00:00 2001 From: Joaquin Date: Thu, 19 May 2022 19:31:03 +0300 Subject: [PATCH] [std C compliance] replace #pragma once in common.h with standard #ifndef guard --- common.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/common.h b/common.h index 6399bbe..cca606d 100644 --- a/common.h +++ b/common.h @@ -1,5 +1,7 @@ -#pragma once +#ifndef COMMONH + typedef unsigned char byte; //8bit (byte) variable type + typedef unsigned short word; //16bit (2byte) variable type + typedef enum {false, true} bool; +#endif -typedef unsigned char byte; //8bit (byte) variable type -typedef unsigned short word; //16bit (2byte) variable type -typedef enum {false, true} bool; \ No newline at end of file +#define COMMONH \ No newline at end of file