]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
pragma once
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Mon, 18 May 2015 11:28:57 +0000 (13:28 +0200)
committermind04 <mind04@monshouwer.org>
Mon, 29 Jun 2015 18:41:07 +0000 (20:41 +0200)
pdns/dns.hh
pdns/misc.hh

index ad7d5ecb3aa90640d2130de73bf42a4b8f88b3d2..831e2bd97140ef10aa9edaacbaf33c6d241d8d77 100644 (file)
@@ -21,8 +21,7 @@
 */
 // $Id$ 
 /* (C) 2002 POWERDNS.COM BV */
-#ifndef DNS_HH
-#define DNS_HH
+#pragma once
 #include <boost/multi_index_container.hpp>
 #include <boost/multi_index/ordered_index.hpp>
 #include <boost/tuple/tuple_comparison.hpp>
@@ -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
index e72236de0e8057a449155756fef922b96f5efa24..acbc2c8b3e9332eef3e6ae1e7da051c8355f7d59 100644 (file)
@@ -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 <errno.h>
 #include <inttypes.h>
 #include <cstring>
@@ -558,4 +557,3 @@ bool setNonBlocking( int sock );
 int closesocket(int fd);
 bool setCloseOnExec(int sock);
 uint64_t udpErrorStats(const std::string& str);
-#endif