Index: src/google_breakpad/common/breakpad_types.h |
diff --git a/src/google_breakpad/common/breakpad_types.h b/src/google_breakpad/common/breakpad_types.h |
index c936e1e683e3f960c336dde62a95278cbf09a9ce..d8828043ff382b3dd1233174a16f65cadcef2313 100644 |
--- a/src/google_breakpad/common/breakpad_types.h |
+++ b/src/google_breakpad/common/breakpad_types.h |
@@ -40,6 +40,12 @@ |
#ifndef GOOGLE_BREAKPAD_COMMON_BREAKPAD_TYPES_H__ |
#define GOOGLE_BREAKPAD_COMMON_BREAKPAD_TYPES_H__ |
+#if (defined(_INTTYPES_H) || defined(_INTTYPES_H_)) && \ |
+ !defined(__STDC_FORMAT_MACROS) |
+#error "inttypes.h has already been included before this header file, but " |
+#error "without __STDC_FORMAT_MACROS defined." |
+#endif |
+ |
#ifndef __STDC_FORMAT_MACROS |
#define __STDC_FORMAT_MACROS |
#endif /* __STDC_FORMAT_MACROS */ |