From 7af4c5b5c561362cb1135ab504095ae667a9270a Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Fri, 27 Jun 2014 19:16:45 -0700 Subject: This is more reliable --- src/net/packets.hpp | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'src/net/packets.hpp') diff --git a/src/net/packets.hpp b/src/net/packets.hpp index e025a63..5cc377c 100644 --- a/src/net/packets.hpp +++ b/src/net/packets.hpp @@ -1,5 +1,4 @@ -#ifndef TMWA_NET_PACKETS_HPP -#define TMWA_NET_PACKETS_HPP +#pragma once // packets.hpp - palatable socket buffer accessors // // Copyright © 2014 Ben Longbons @@ -19,20 +18,20 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -# include "fwd.hpp" +#include "fwd.hpp" -# include +#include -# include "../compat/cast.hpp" +#include "../compat/cast.hpp" -# include "../ints/little.hpp" +#include "../ints/little.hpp" -# include "../io/fwd.hpp" +#include "../io/fwd.hpp" // TODO ordering violation, should invert -# include "../proto2/fwd.hpp" +#include "../proto2/fwd.hpp" -# include "socket.hpp" +#include "socket.hpp" namespace tmwa @@ -584,5 +583,3 @@ RecvResult recv_packet_repeatonly(Session *s, AString& repeat) return recv_vpacket(s, head, repeat); } } // namespace tmwa - -#endif // TMWA_NET_PACKETS_HPP -- cgit v1.2.3-60-g2f50