As
Richard noted, you cannot simply remove them, you have to replace them with the
#pragma once
pragma.
To add my two cents to
Richard's answer (
GCC
documentation):
#pragma once
If #pragma once is seen when scanning a header file, that file will never be read again, no matter what. It is a less-portable alternative to using '#ifndef' to guard the contents of header files against multiple inclusions.