Is there anything equivalent to #pragma once for Codegear RAD Studio 2009?
I am using the precompiled header wizard and I would like to know if it is still necessary to use include guards when including header files?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Support for #pragma once was added in C++Builder 2010
In C++Builder 2009 and earlier, the unknown pragma will simply be ignored. I would suggest using
style header guards in the versions of C++Builder that do not support #pragma once.