A lot of header files and header-like files are missing an include guard. #pragma once is added to those files.
Without an include guard, multiple inclusions of a header file can cause various compiler errors or unexpected behavior. It will also make compilation slower.
Some other issues regarding include guards are resolved as well:
the include guard was not the first statement in the header file
the include guard was referring to a different file
the include guard was placed in an implementation file
A lot of header files and header-like files are missing an include guard.
#pragma once
is added to those files.Without an include guard, multiple inclusions of a header file can cause various compiler errors or unexpected behavior. It will also make compilation slower.
Some other issues regarding include guards are resolved as well: