Atoptool / atop

System and process monitor for Linux
GNU General Public License v2.0
789 stars 110 forks source link

Add macro protection in header files #215

Closed pizhenwei closed 1 year ago

pizhenwei commented 1 year ago

Add following codes to protect header files:

ifndef XXX

define XXX

...

endif

Currently building atop without these macros works fine. To avoid building error in the future, add these in each header files.

Signed-off-by: zhenwei pi pizhenwei@bytedance.com