#pragma once versus #ifndef - C++ Forum - cplusplus.com - The C++ Resources Network
Pragmas are machine- or operating system-specific by definition, and are usually different for every compiler. So if you want your code to be portable use the first method. ... #pragma once can fail if the file system contains links to the same file that ...