| Index: runtime/include/dart_api.h
|
| diff --git a/runtime/include/dart_api.h b/runtime/include/dart_api.h
|
| index 11ed7b1cd725b3ef7efc77647e4f2e14fe8f033a..bcfb7eb1e0e072ba5809bb266fa5279f223d7bca 100755
|
| --- a/runtime/include/dart_api.h
|
| +++ b/runtime/include/dart_api.h
|
| @@ -38,6 +38,11 @@ typedef unsigned __int64 uint64_t;
|
| #define DART_EXPORT DART_EXTERN_C
|
| #endif
|
| #else
|
| +// __STDC_FORMAT_MACROS has to be defined before including <inttypes.h> to
|
| +// enable platform independent printf format specifiers.
|
| +#ifndef __STDC_FORMAT_MACROS
|
| +#define __STDC_FORMAT_MACROS
|
| +#endif
|
| #include <inttypes.h>
|
| #include <stdbool.h>
|
| #if __GNUC__ >= 4
|
|
|