Skip to content

Commit ae0dbfe

Browse files
Add missing headers (#239)
Two changes: 1. Add `#include <cinttypes>` to `test/cctest/cctest.h`. Without it, on Linux systems, the following error occurs: ``` note: 'PRId64' is defined in header '<cinttypes>'; did you forget to '#include <cinttypes>'? ``` and similarly for `PRIu64` macro. 2. `double-conversion/bignum-dtoa.h` added as a required header in `CMakeLists.txt`. `double-conversion/bignum-dtoa.cc` is added to the library which references this header.
1 parent 374c46b commit ae0dbfe

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ endif()
1212

1313
set(headers
1414
double-conversion/bignum.h
15+
double-conversion/bignum-dtoa.h
1516
double-conversion/cached-powers.h
1617
double-conversion/diy-fp.h
1718
double-conversion/double-conversion.h

test/cctest/cctest.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#ifndef CCTEST_H_
2929
#define CCTEST_H_
3030

31+
#include <cinttypes>
3132
#include <stdio.h>
3233
#include <string.h>
3334
#include <inttypes.h>

0 commit comments

Comments
 (0)