Index: util/file/file_writer.cc |
diff --git a/util/file/file_writer.cc b/util/file/file_writer.cc |
index 703a88291a5140e510c73b54783b99a3334a8995..5c7c25dc46dd1a797115882cc6322e8a4bc6da0a 100644 |
--- a/util/file/file_writer.cc |
+++ b/util/file/file_writer.cc |
@@ -25,11 +25,11 @@ |
namespace crashpad { |
// Ensure type compatibility between WritableIoVec and iovec. |
-COMPILE_ASSERT(sizeof(WritableIoVec) == sizeof(iovec), WritableIoVec_size); |
-COMPILE_ASSERT(offsetof(WritableIoVec, iov_base) == offsetof(iovec, iov_base), |
- WritableIoVec_base_offset); |
-COMPILE_ASSERT(offsetof(WritableIoVec, iov_len) == offsetof(iovec, iov_len), |
- WritableIoVec_len_offset); |
+static_assert(sizeof(WritableIoVec) == sizeof(iovec), "WritableIoVec size"); |
+static_assert(offsetof(WritableIoVec, iov_base) == offsetof(iovec, iov_base), |
+ "WritableIoVec base offset"); |
+static_assert(offsetof(WritableIoVec, iov_len) == offsetof(iovec, iov_len), |
+ "WritableIoVec len offset"); |
FileWriter::FileWriter() : fd_() { |
} |