Maybe we should agree to disagree on this one. I have never written cross compiler code so I just use #pragma once but If I had to then I would just use the include guards
I was only trying to get across that I thought the compilation time difference between this
#ifndef __someheader_h#define __someheader_h// Check for microsoft compiler#ifdef _VISUALC#pragma once#endif// Header specific stuff#endif
and this
#ifndef __someheader_h#define __someheader_h// Header specific stuff#endif
would maybe add seconds to a compilation time of a large project and to me that would not justify the use of a second check to shave maybe <10ms from an individual .cpp compilation time.
I shouldn't have said rings of stupidity, I was just really frustrated so I apologise if i may have offended anyone.