#ifdef vs #if for feature checks

Thomas Arnhold thomas-libo at arnhold.org
Wed Mar 20 03:16:32 PDT 2013


Yes, but our internal RSC doesn't support #pragma once ;)

On 19.03.2013 07:53, vincent wrote:
> HI,
> I found some wiki about "#pragma once" compiler support
> http://en.wikipedia.org/wiki/Pragma_once#Portability
> http://en.wikipedia.org/wiki/Pragma_once#Portability
> Compiler 	#pragma once
> Clang <http://en.wikipedia.org/wiki/Clang> 	Supported^[7]
> <http://en.wikipedia.org/wiki/Pragma_once#cite_note-7>
> Comeau C/C++ <http://en.wikipedia.org/wiki/Comeau_C/C%2B%2B>
> Supported^[8] <http://en.wikipedia.org/wiki/Pragma_once#cite_note-8>
> Digital Mars C++
> <http://en.wikipedia.org/w/index.php?title=Digital_Mars_C%2B%2B&action=edit&redlink=1>
> 	Supported^[9] <http://en.wikipedia.org/wiki/Pragma_once#cite_note-9>
> GCC <http://en.wikipedia.org/wiki/GNU_Compiler_Collection>
> Supported^[10] <http://en.wikipedia.org/wiki/Pragma_once#cite_note-10>
> Intel C++ Compiler
> <http://en.wikipedia.org/wiki/Intel_C%2B%2B_Compiler> 	Supported^[11]
> <http://en.wikipedia.org/wiki/Pragma_once#cite_note-11>
> Microsoft Visual C++
> <http://en.wikipedia.org/wiki/Microsoft_Visual_C%2B%2B> 	Supported^[12]
> <http://en.wikipedia.org/wiki/Pragma_once#cite_note-12>
> C++Builder XE3
> <http://en.wikipedia.org/w/index.php?title=C%2B%2BBuilder_XE3&action=edit&redlink=1>
> 	Supported^[13] <http://en.wikipedia.org/wiki/Pragma_once#cite_note-13>
>
> http://stackoverflow.com/questions/10990488/how-to-include-header-files-more-clearly-in-c/10990521#10990521




More information about the LibreOffice mailing list