Browse Source

Move guard before includes

Filip Klembara 4 years ago
parent
commit
bb530ef44d

+ 2 - 2
include/rtc/h264packetizationhandler.hpp

@@ -19,13 +19,13 @@
 #ifndef H264PacketizationHandler_hpp
 #define H264PacketizationHandler_hpp
 
+#if RTC_ENABLE_MEDIA
+
 #include "rtcp.hpp"
 #include "h264rtppacketizer.hpp"
 #include "rtcpsenderreportable.hpp"
 #include "nalunit.hpp"
 
-#if RTC_ENABLE_MEDIA
-
 namespace rtc {
 
 /// Handler for H264 packetization

+ 2 - 2
include/rtc/h264rtppacketizer.hpp

@@ -19,10 +19,10 @@
 #ifndef H264RTPPacketizer_hpp
 #define H264RTPPacketizer_hpp
 
-#include "rtppacketizer.hpp"
-
 #if RTC_ENABLE_MEDIA
 
+#include "rtppacketizer.hpp"
+
 namespace rtc {
 
 /// RTP packetization of h264 payload

+ 2 - 2
include/rtc/nalunit.hpp

@@ -19,10 +19,10 @@
 #ifndef NalUnit_hpp
 #define NalUnit_hpp
 
-#include "include.hpp"
-
 #if RTC_ENABLE_MEDIA
 
+#include "include.hpp"
+
 namespace rtc {
 
 #pragma pack(push, 1)

+ 2 - 2
include/rtc/opuspacketizationhandler.hpp

@@ -19,12 +19,12 @@
 #ifndef OpusPacketizationHandler_hpp
 #define OpusPacketizationHandler_hpp
 
+#if RTC_ENABLE_MEDIA
+
 #include "rtcpsenderreportable.hpp"
 #include "opusrtppacketizer.hpp"
 #include "rtcp.hpp"
 
-#if RTC_ENABLE_MEDIA
-
 namespace rtc {
 
 /// Handler for opus packetization

+ 2 - 2
include/rtc/opusrtppacketizer.hpp

@@ -19,10 +19,10 @@
 #ifndef OpusRTPPacketizer_hpp
 #define OpusRTPPacketizer_hpp
 
-#include "rtppacketizer.hpp"
-
 #if RTC_ENABLE_MEDIA
 
+#include "rtppacketizer.hpp"
+
 namespace rtc {
 
 /// RTP packetizer for opus

+ 2 - 2
include/rtc/rtcpsenderreportable.hpp

@@ -19,11 +19,11 @@
 #ifndef RTCPSenderReporter_hpp
 #define RTCPSenderReporter_hpp
 
+#if RTC_ENABLE_MEDIA
+
 #include "message.hpp"
 #include "rtppacketizationconfig.hpp"
 
-#if RTC_ENABLE_MEDIA
-
 namespace rtc {
 
 /// Class for sending RTCP SR

+ 2 - 2
include/rtc/rtppacketizationconfig.hpp

@@ -19,10 +19,10 @@
 #ifndef RTPPacketizationConfig_hpp
 #define RTPPacketizationConfig_hpp
 
-#include "rtp.hpp"
-
 #if RTC_ENABLE_MEDIA
 
+#include "rtp.hpp"
+
 namespace rtc {
 
 /// RTP configuration used in packetization process

+ 2 - 2
include/rtc/rtppacketizer.hpp

@@ -19,11 +19,11 @@
 #ifndef RTPPacketizer_hpp
 #define RTPPacketizer_hpp
 
+#if RTC_ENABLE_MEDIA
+
 #include "rtppacketizationconfig.hpp"
 #include "message.hpp"
 
-#if RTC_ENABLE_MEDIA
-
 namespace rtc {
 
 /// Class responsizble for rtp packetization

+ 2 - 2
src/h264packetizationhandler.cpp

@@ -16,10 +16,10 @@
  * along with this program; If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "h264packetizationhandler.hpp"
-
 #if RTC_ENABLE_MEDIA
 
+#include "h264packetizationhandler.hpp"
+
 using namespace rtc;
 using namespace std;
 

+ 2 - 2
src/h264rtppacketizer.cpp

@@ -16,10 +16,10 @@
  * along with this program; If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "h264rtppacketizer.hpp"
-
 #if RTC_ENABLE_MEDIA
 
+#include "h264rtppacketizer.hpp"
+
 using namespace std;
 using namespace rtc;
 

+ 2 - 2
src/nalunit.cpp

@@ -16,11 +16,11 @@
  * along with this program; If not, see <http://www.gnu.org/licenses/>.
  */
 
+#if RTC_ENABLE_MEDIA
+
 #include "nalunit.hpp"
 #include <cmath>
 
-#if RTC_ENABLE_MEDIA
-
 using namespace std;
 using namespace rtc;
 

+ 2 - 2
src/opuspacketizationhandler.cpp

@@ -16,10 +16,10 @@
  * along with this program; If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "opuspacketizationhandler.hpp"
-
 #if RTC_ENABLE_MEDIA
 
+#include "opuspacketizationhandler.hpp"
+
 using namespace rtc;
 
 OpusPacketizationHandler::OpusPacketizationHandler(std::shared_ptr<OpusRTPPacketizer> packetizer): RtcpHandler(), RTCPSenderReportable(packetizer->rtpConfig), packetizer(packetizer) {

+ 2 - 2
src/opusrtppacketizer.cpp

@@ -16,10 +16,10 @@
  * along with this program; If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "opusrtppacketizer.hpp"
-
 #if RTC_ENABLE_MEDIA
 
+#include "opusrtppacketizer.hpp"
+
 using namespace std;
 using namespace rtc;
 

+ 2 - 2
src/rtcpsenderreportable.cpp

@@ -16,10 +16,10 @@
  * along with this program; If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "rtcpsenderreportable.hpp"
-
 #if RTC_ENABLE_MEDIA
 
+#include "rtcpsenderreportable.hpp"
+
 using namespace rtc;
 using namespace std;
 

+ 2 - 2
src/rtppacketizationconfig.cpp

@@ -16,10 +16,10 @@
  * along with this program; If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "rtppacketizationconfig.hpp"
-
 #if RTC_ENABLE_MEDIA
 
+#include "rtppacketizationconfig.hpp"
+
 using namespace rtc;
 using namespace std;
 

+ 2 - 2
src/rtppacketizer.cpp

@@ -16,10 +16,10 @@
  * along with this program; If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "rtppacketizer.hpp"
-
 #if RTC_ENABLE_MEDIA
 
+#include "rtppacketizer.hpp"
+
 using namespace std;
 using namespace rtc;