From: Peter van Dijk Date: Mon, 18 May 2015 11:28:57 +0000 (+0200) Subject: pragma once X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~58^2~21^2~5^2~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea76bac09891e403aa8a9da073db35281c819b4d;p=thirdparty%2Fpdns.git pragma once --- diff --git a/pdns/dns.hh b/pdns/dns.hh index ad7d5ecb3a..831e2bd971 100644 --- a/pdns/dns.hh +++ b/pdns/dns.hh @@ -21,8 +21,7 @@ */ // $Id$ /* (C) 2002 POWERDNS.COM BV */ -#ifndef DNS_HH -#define DNS_HH +#pragma once #include #include #include @@ -225,4 +224,3 @@ void fillSOAData(const string &content, SOAData &data); /** for use by DNSPacket, converts a SOAData class to a ascii line again */ string serializeSOAData(const SOAData &data); string &attodot(string &str); //!< for when you need to insert an email address in the SOA -#endif diff --git a/pdns/misc.hh b/pdns/misc.hh index e72236de0e..acbc2c8b3e 100644 --- a/pdns/misc.hh +++ b/pdns/misc.hh @@ -19,8 +19,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef MISC_HH -#define MISC_HH +#pragma once #include #include #include @@ -558,4 +557,3 @@ bool setNonBlocking( int sock ); int closesocket(int fd); bool setCloseOnExec(int sock); uint64_t udpErrorStats(const std::string& str); -#endif