Skip to content

Commit 999888e

Browse files
committed
add missing <string> and <cmath> includes
1 parent a79f752 commit 999888e

4 files changed

Lines changed: 4 additions & 0 deletions

File tree

main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
#include <iostream>
5656
#include <typeinfo>
5757
#include <algorithm>
58+
#include <cmath> // std::pow
5859

5960
/*********************
6061
* DEFINES

sim/FreeRTOS.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
#define NRF_ERROR_INVALID_ADDR (NRF_ERROR_BASE_NUM + 16) ///< Bad Memory Address
6161
#define NRF_ERROR_BUSY (NRF_ERROR_BASE_NUM + 17) ///< Busy
6262
#include <stdexcept>
63+
#include <string> // std::to_string()
6364
template<typename T>
6465
void APP_ERROR_HANDLER(T err) {
6566
throw std::runtime_error("APP_ERROR_HANDLER: " + std::to_string(err));

sim/nrfx/hal/nrf_gpio.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#include <SDL2/SDL.h>
66
#include <stdexcept>
7+
#include <string> // std::to_string
78

89
void nrf_gpio_cfg_default(uint32_t pin_number) {}
910
void nrf_gpio_pin_set(uint32_t pin_number) {}

sim/nrfx/hal/nrf_rtc.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include "task.h"
44
#include <chrono>
55
#include <stdexcept>
6+
#include <string> // std::to_string
67

78
uint32_t nrf_rtc_counter_get(NRF_RTC_Type p_reg)
89
{

0 commit comments

Comments
 (0)