Chris911/iStats

#include guard in smc.h doesn't prevent including twice

iCodeSometime opened this issue · 0 comments

smc.h currently has an include guard at the top in this format

#ifndef __SMC_H__
#define __SMC_H__
#endif
<code>

This does nothing.. If it's included again, it will still include all the code, just not redefine __SMC_H__

It should be like this:

#ifndef __SHC_H__
#define __SMC_H__
<code>
#endif

This will ensure the header is only included once.