Skip to content

Commit 5c3225c

Browse files
committed
fix build failure with gcc 15 by adding cstdint header
Fixes #79 ``` srecord/input/file/hp64k.h:82:21: error: ‘uint16_t’ has not been declared 82 | bool read_u16be(uint16_t *dest); | ^~~~~~~~ /home/abuild/rpmbuild/BUILD/srecord-1.65.0-build/srecord-1.65.0-Source/./srecord/input/file/hp64k.h:1:1: note: ‘uint16_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’ +++ |+#include <cstdint> 1 | // make[2]: *** [srecord/CMakeFiles/lib_srecord.dir/build.make:222: srecord/CMakeFiles/lib_srecord.dir/arglex/tool/input.cc.o] Error 1 ``` * From gcc 13, cstdint header must be explicitly included for uint_X data types. * See also: https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes Signed-off-by: mark.yang <mark.yang@lge.com>
1 parent 6fa2523 commit 5c3225c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

srecord/input/file/hp64k.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#define LIB_INPUT_FILE_HP64K
2222

2323
#include <srecord/input/file.h>
24+
#include <cstdint>
2425

2526
namespace srecord {
2627

0 commit comments

Comments
 (0)