Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(431)

Unified Diff: courgette/types_elf.h

Issue 1543643002: Switch to standard integer types in courgette/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « courgette/typedrva_unittest.cc ('k') | courgette/types_win_pe.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/types_elf.h
diff --git a/courgette/types_elf.h b/courgette/types_elf.h
index eb054ee5bc5c3b6f83bebd28bdbf321824f69a0a..a98fd8b5b5b3b724e1b2e87c681da8c2679f0352 100644
--- a/courgette/types_elf.h
+++ b/courgette/types_elf.h
@@ -5,17 +5,18 @@
#ifndef COURGETTE_ELF_TYPES_H_
#define COURGETTE_ELF_TYPES_H_
+#include <stdint.h>
+
//
// This header defines various types from the ELF file spec, but no code
// related to using them.
//
-typedef uint32 Elf32_Addr; // Unsigned program address
-typedef uint16 Elf32_Half; // Unsigned medium integer
-typedef uint32 Elf32_Off; // Unsigned file offset
-typedef int32 Elf32_Sword; // Signed large integer
-typedef uint32 Elf32_Word; // Unsigned large integer
-
+typedef uint32_t Elf32_Addr; // Unsigned program address
+typedef uint16_t Elf32_Half; // Unsigned medium integer
+typedef uint32_t Elf32_Off; // Unsigned file offset
+typedef int32_t Elf32_Sword; // Signed large integer
+typedef uint32_t Elf32_Word; // Unsigned large integer
// The header at the top of the file
struct Elf32_Ehdr {
« no previous file with comments | « courgette/typedrva_unittest.cc ('k') | courgette/types_win_pe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698