summaryrefslogtreecommitdiffstats
path: root/src/stateless/cp
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2015-11-09 10:40:11 +0200
committerimarom <imarom@cisco.com>2015-11-09 10:56:11 +0200
commit67bcc46be09049d2ca65c0af2aa6a2fe0821eb04 (patch)
treef6fde81c1a6983a6cb28783871290ee4970b23b7 /src/stateless/cp
parentc75eb0b81a70ac39a5535553ad902b3a11385d48 (diff)
DPDK target is now built with -Wall -Werror
(with few expections) on both Fedora 18 and Ubunutu
Diffstat (limited to 'src/stateless/cp')
-rw-r--r--src/stateless/cp/trex_stateless_port.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/stateless/cp/trex_stateless_port.cpp b/src/stateless/cp/trex_stateless_port.cpp
index 3a8d2c14..cb6fcc0e 100644
--- a/src/stateless/cp/trex_stateless_port.cpp
+++ b/src/stateless/cp/trex_stateless_port.cpp
@@ -27,9 +27,16 @@ limitations under the License.
#include <string>
#ifndef TREX_RPC_MOCK_SERVER
+
// DPDK c++ issue
-#define UINT8_MAX 255
-#define UINT16_MAX 0xFFFF
+#ifndef UINT8_MAX
+ #define UINT8_MAX 255
+#endif
+
+#ifndef UINT16_MAX
+ #define UINT16_MAX 0xFFFF
+#endif
+
// DPDK c++ issue
#endif