Added stdc_format_macros for all inttypes.h includes.

This commit is contained in:
James Goppert 2015-09-24 17:44:27 -04:00
parent 6cdb373abb
commit 2a60ffd554
8 changed files with 8 additions and 2 deletions

View File

@ -41,6 +41,7 @@
#include <sys/types.h>
#include <stdbool.h>
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
#include <time.h>

View File

@ -40,8 +40,9 @@
#ifndef I2C_FRAME_H_
#define I2C_FRAME_H_
#include <inttypes.h>
#define __STDC_FORMAT_MACROS 1
#include <inttypes.h>
typedef struct i2c_frame
{

View File

@ -39,6 +39,7 @@
#pragma once
#define __STDC_FORMAT_MACROS
#include <stdint.h>
#include <inttypes.h>

View File

@ -33,6 +33,7 @@
#pragma once
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
/**

View File

@ -61,6 +61,7 @@ do {
typedef unsigned int uint32_t;
typedef unsigned char uint8_t;
#else
#define __STDC_FORMAT_MACROS
#include <inttypes.h> /* uint32_t */
#endif

View File

@ -43,6 +43,7 @@
#include <semaphore.h>
#include <time.h>
#include <string.h>
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
#include <errno.h>
#include "hrt_work.h"

View File

@ -48,6 +48,7 @@
/* includes when building for ros */
#include "ros/ros.h"
#include <list>
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
#include <type_traits>
#else

View File

@ -57,7 +57,6 @@
#include <math.h>
#include <float.h>
#include <inttypes.h>
/****************************************************************************