stdint.h on Fedora dist. requires explicit defines for
authorimarom <[email protected]>
Mon, 29 Feb 2016 08:29:52 +0000 (10:29 +0200)
committerimarom <[email protected]>
Mon, 29 Feb 2016 08:29:52 +0000 (10:29 +0200)
format macros and limit macros - updated the WAF makefiles

linux/ws_main.py
linux_dpdk/ws_main.py
src/main_dpdk.cpp

index a8e7dee..9422a8f 100755 (executable)
@@ -243,6 +243,8 @@ cxxflags_base =['-DWIN_UCODE_SIM',
                 '-D_BYTE_ORDER',
                 '-D_LITTLE_ENDIAN',
                 '-DLINUX',
+                '-D__STDC_LIMIT_MACROS',
+                '-D__STDC_FORMAT_MACROS',
                 '-g',
                 '-Wno-deprecated-declarations',
                 '-std=c++0x',
index 0d96cfa..ad8d259 100755 (executable)
@@ -387,6 +387,8 @@ common_flags = ['-DWIN_UCODE_SIM',
                 '-Wno-format',
                 '-Wno-deprecated-declarations',
                 '-DRTE_DPDK',
+                '-D__STDC_LIMIT_MACROS',
+                '-D__STDC_FORMAT_MACROS',
                 '-include','../src/pal/linux_dpdk/dpdk22/rte_config.h'
                ]
 
index 8891726..5c7be19 100644 (file)
@@ -18,13 +18,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
 */
-
-// DPDK c++ issue 
-#define UINT8_MAX 255
-#define UINT16_MAX 0xFFFF
-#define __STDC_FORMAT_MACROS
-// DPDK c++ issue 
-
 #include <pwd.h>
 #include <rte_common.h>
 #include <rte_log.h>