Skip to content

Commit

Permalink
Cpp files includes their respecitve header file as the first include
Browse files Browse the repository at this point in the history
  • Loading branch information
qjgn committed Dec 4, 2024
1 parent 6001dcb commit cef8699
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Markup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@
// This software is provided "as is", with no warranty.
// Latest fixes enhancements and documentation at www.firstobject.com

#include "Markup.h"

#include <assert.h>
#include <algorithm>
#include <stdarg.h>
#include <string.h>

#include "Markup.h"

#ifdef _DEBUG
#undef THIS_FILE
Expand Down
3 changes: 2 additions & 1 deletion RTPacket.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#define _CRT_SECURE_NO_WARNINGS
#define NOMINMAX

#include "RTPacket.h"

#include <memory.h>
#include <float.h>
#include <stdint.h>
Expand All @@ -12,7 +14,6 @@
#include <arpa/inet.h>
#endif

#include "RTPacket.h"

CRTPacket::CRTPacket(int nMajorVersion, int nMinorVersion, bool bBigEndian)
{
Expand Down
3 changes: 2 additions & 1 deletion RTProtocol.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#define _CRT_SECURE_NO_WARNINGS
#define NOMINMAX

#include "RTProtocol.h"

#include <float.h>
#include <cctype>
#include <thread>
Expand All @@ -13,7 +15,6 @@
#include <iterator>
#include <functional>

#include "RTProtocol.h"
#include "Markup.h"
#include "Network.h"
#include <stdexcept>
Expand Down

0 comments on commit cef8699

Please sign in to comment.