Skip to content
Snippets Groups Projects
Commit d2535f38 authored by Kévin Roussel's avatar Kévin Roussel Committed by Oleg Hahm
Browse files

Added missing definition of 'PRIu32' in some RIOT include files

to avoid a bug in mspgcc's standard library
parent c7501ce5
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,12 @@ ...@@ -11,6 +11,12 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h> #include <stdint.h>
#include <inttypes.h>
// mspgcc bug : PRIxxx macros not defined before mid-2011 versions
#ifndef PRIu32
#define PRIu32 "lu"
#endif
typedef struct queue_node_t { typedef struct queue_node_t {
struct queue_node_t *next; struct queue_node_t *next;
......
...@@ -2,6 +2,12 @@ ...@@ -2,6 +2,12 @@
#define __TIMEX_H #define __TIMEX_H
#include <stdint.h> #include <stdint.h>
#include <inttypes.h>
// mspgcc bug : PRIxxx macros not defined before mid-2011 versions
#ifndef PRIu32
#define PRIu32 "lu"
#endif
typedef struct timex_t { typedef struct timex_t {
uint32_t seconds; uint32_t seconds;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment