Include guards or #pragma once?

For Arduino, what is the preferred way to include source file only once in a single compilation?

  • Include guards
  • #pragma once

Thank you.

Most libraries use include guards.

Thanks for the information PaulS.