Add #pragma once to headers
This allows compilers to optimize inclusion of header files by only
running the preprocessor once per header.
This is supported by GCC and Visual Studio (as well as other compilers)
and unsupported compilers simply ignore it. However, GCC can detect the
include guards so adding the pragma will likely have no effect.
Showing
Please
register
or
sign in
to comment