summaryrefslogtreecommitdiff
path: root/src/net/packets.hpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-06-27 19:16:45 -0700
committerBen Longbons <b.r.longbons@gmail.com>2014-06-27 19:33:42 -0700
commit7af4c5b5c561362cb1135ab504095ae667a9270a (patch)
tree49ffd3008d7634ba36f3951493a68e928407ce89 /src/net/packets.hpp
parent8d7f1dadeeb1dc1609b72de5a4ee3a5247b0e9e6 (diff)
downloadtmwa-7af4c5b5c561362cb1135ab504095ae667a9270a.tar.gz
tmwa-7af4c5b5c561362cb1135ab504095ae667a9270a.tar.bz2
tmwa-7af4c5b5c561362cb1135ab504095ae667a9270a.tar.xz
tmwa-7af4c5b5c561362cb1135ab504095ae667a9270a.zip
This is more reliable
Diffstat (limited to 'src/net/packets.hpp')
-rw-r--r--src/net/packets.hpp19
1 files changed, 8 insertions, 11 deletions
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 <b.r.longbons@gmail.com>
@@ -19,20 +18,20 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
-# include "fwd.hpp"
+#include "fwd.hpp"
-# include <vector>
+#include <vector>
-# 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<id, 4, repeatsize>(s, head, repeat);
}
} // namespace tmwa
-
-#endif // TMWA_NET_PACKETS_HPP