Skip to content

Commit 575bfdb

Browse files
committed
Replace including of <stdint.h> by <cstdint>
1 parent 6ec6850 commit 575bfdb

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

elfio/elf_types.hpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,22 @@ THE SOFTWARE.
2323
#ifndef ELFTYPES_H
2424
#define ELFTYPES_H
2525

26-
#include <stdint.h>
26+
#include <cstdint>
2727

2828
#ifdef __cplusplus
2929
namespace ELFIO {
3030
#endif
3131

32-
using Elf_Half = uint16_t;
33-
using Elf_Word = uint32_t;
34-
using Elf_Sword = int32_t;
35-
using Elf_Xword = uint64_t;
36-
using Elf_Sxword = int64_t;
32+
using Elf_Half = std::uint16_t;
33+
using Elf_Word = std::uint32_t;
34+
using Elf_Sword = std::int32_t;
35+
using Elf_Xword = std::uint64_t;
36+
using Elf_Sxword = std::int64_t;
3737

38-
using Elf32_Addr = uint32_t;
39-
using Elf32_Off = uint32_t;
40-
using Elf64_Addr = uint64_t;
41-
using Elf64_Off = uint64_t;
38+
using Elf32_Addr = std::uint32_t;
39+
using Elf32_Off = std::uint32_t;
40+
using Elf64_Addr = std::uint64_t;
41+
using Elf64_Off = std::uint64_t;
4242

4343
using Elf32_Half = Elf_Half;
4444
using Elf64_Half = Elf_Half;

0 commit comments

Comments
 (0)