on Fedora 18, inttypes.h requires explicit define
authorimarom <[email protected]>
Sun, 28 Feb 2016 13:09:53 +0000 (15:09 +0200)
committerimarom <[email protected]>
Sun, 28 Feb 2016 13:09:53 +0000 (15:09 +0200)
/* The ISO C99 standard specifies that these macros must only be
   defined if explicitly requested.  */
if !defined __cplusplus || defined __STDC_FORMAT_MACROS

src/main_dpdk.cpp

index 1b5b82f..8891726 100644 (file)
@@ -22,6 +22,7 @@ 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>