#ifdef vs #if for feature checks

vincent vincentgsoc2013 at gmail.com
Mon Mar 18 23:53:35 PDT 2013


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
ClangSupported[7]
Comeau C/C++Supported[8]
Digital Mars C++Supported[9]
GCCSupported[10]
Intel C++ CompilerSupported[11]
Microsoft Visual C++Supported[12]
C++Builder XE3Supported[13]


http://stackoverflow.com/questions/10990488/how-to-include-header-files-more-clearly-in-c/10990521#10990521 

Thanks,





vincent

From: Tor Lillqvist
Date: 2013-03-19 13:51
To: Norbert Thiebaud
CC: libreoffice; Lubos Lunak
Subject: Re: #ifdef vs #if for feature checks
> otoh, #pragma once is supported by all the compiler we use isn't it ?

Excellent! Let's do that, unless somebody comes up with a
counter-argument in a week or so.

--tml
_______________________________________________
LibreOffice mailing list
LibreOffice at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130319/ced54ccb/attachment-0001.html>


More information about the LibreOffice mailing list