Skip to content

Commit 6fc1cf5

Browse files
committed
Remove ifdef inside cpp
1 parent 3b57224 commit 6fc1cf5

10 files changed

+1
-35
lines changed

Pcap++/src/KniDevice.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#if defined(USE_DPDK) && defined(__linux__)
2-
31
// GCOVR_EXCL_START
42

53
# define LOG_MODULE PcapLogModuleKniDevice
@@ -984,5 +982,3 @@ namespace pcpp
984982
} // namespace pcpp
985983

986984
// GCOVR_EXCL_STOP
987-
988-
#endif /* defined(USE_DPDK) && defined(__linux__) */

Pcap++/src/KniDeviceList.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#if defined(USE_DPDK) && defined(__linux__)
2-
31
// GCOVR_EXCL_START
42

53
# define LOG_MODULE PcapLogModuleKniDevice
@@ -172,5 +170,3 @@ namespace pcpp
172170
} // namespace pcpp
173171

174172
// GCOVR_EXCL_STOP
175-
176-
#endif /* defined(USE_DPDK) && defined(__linux__) */

Pcap++/src/LinuxNicInformationSocket.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#ifdef __linux__
2-
31
# define LOG_MODULE UndefinedLogModule
42

53
# include "Logger.h"
@@ -71,4 +69,3 @@ namespace pcpp
7169
return true;
7270
}
7371
} // namespace pcpp
74-
#endif /* __linux__ */

Pcap++/src/MBufRawPacket.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#ifdef USE_DPDK
2-
31
// GCOVR_EXCL_START
42

53
# define LOG_MODULE PcapLogModuleMBufRawPacket
@@ -345,5 +343,3 @@ namespace pcpp
345343
} // namespace pcpp
346344

347345
// GCOVR_EXCL_STOP
348-
349-
#endif /* USE_DPDK */

Pcap++/src/PcapRemoteDevice.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#if defined(_WIN32)
2-
31
# define LOG_MODULE PcapLogModuleRemoteDevice
42

53
# include "PcapRemoteDevice.h"
@@ -99,5 +97,3 @@ namespace pcpp
9997
}
10098

10199
} // namespace pcpp
102-
103-
#endif // _WIN32

Pcap++/src/PcapRemoteDeviceList.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#if defined(_WIN32)
2-
31
# define LOG_MODULE PcapLogModuleRemoteDevice
42

53
# include "PcapRemoteDeviceList.h"
@@ -239,5 +237,3 @@ namespace pcpp
239237
}
240238

241239
} // namespace pcpp
242-
243-
#endif // _WIN32

Pcap++/src/PfRingDevice.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#ifdef USE_PF_RING
2-
31
// GCOVR_EXCL_START
42

53
# define LOG_MODULE PcapLogModulePfRingDevice
@@ -903,5 +901,3 @@ namespace pcpp
903901
} // namespace pcpp
904902

905903
// GCOVR_EXCL_STOP
906-
907-
#endif /* USE_PF_RING */

Pcap++/src/PfRingDeviceList.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#ifdef USE_PF_RING
2-
31
// GCOVR_EXCL_START
42

53
# define LOG_MODULE PcapLogModulePfRingDevice
@@ -136,5 +134,3 @@ namespace pcpp
136134
} // namespace pcpp
137135

138136
// GCOVR_EXCL_STOP
139-
140-
#endif /* USE_PF_RING */

Pcap++/src/WinPcapLiveDevice.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#if defined(_WIN32)
2-
31
# define LOG_MODULE PcapLogModuleWinPcapLiveDevice
42

53
# include "WinPcapLiveDevice.h"
@@ -139,5 +137,3 @@ namespace pcpp
139137
}
140138

141139
} // namespace pcpp
142-
143-
#endif // _WIN32

Pcap++/src/XdpDevice.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#define LOG_MODULE PcapLogModuleXdpDevice
2+
23
#include "XdpDevice.h"
34
#include "GeneralUtils.h"
45
#include "Logger.h"

0 commit comments

Comments
 (0)