Skip to content

Commit 8c3a81d

Browse files
committed
fix includes
1 parent ccead96 commit 8c3a81d

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/analysis/goertzel_analysis.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
#include "SPTK/analysis/goertzel_analysis.h"
1818

19-
#include <cmath> // std::round
19+
#include <cmath> // std::cos, std::round, std::sin
2020
#include <cstddef> // std::size_t
2121
#include <vector> // std::vector
2222

src/main/frame.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <iostream> // std::cerr, std::cin, std::cout, std::endl, etc.
2121
#include <numeric> // std::accumulate
2222
#include <sstream> // std::ostringstream
23+
#include <string> // std::char_traits
2324
#include <vector> // std::vector
2425

2526
#include "GETOPT/ya_getopt.h"
@@ -274,7 +275,7 @@ int main(int argc, char* argv[]) {
274275
// Extract the remaining frames.
275276
const int overlap(frame_length - frame_period);
276277
if (0 < overlap) {
277-
bool is_eof(input_stream.peek() == std::ios::traits_type::eof());
278+
bool is_eof(input_stream.peek() == std::char_traits<char>::eof());
278279
int last_data_position_in_frame(center + actual_read_size - 1);
279280
while (center <= last_data_position_in_frame) {
280281
if (is_eof) {
@@ -302,7 +303,7 @@ int main(int argc, char* argv[]) {
302303
return 1;
303304
}
304305

305-
if (input_stream.peek() == std::iostream::traits_type::eof()) {
306+
if (input_stream.peek() == std::char_traits<char>::eof()) {
306307
last_data_position_in_frame = overlap + actual_read_size - 1;
307308
is_eof = true;
308309
}

src/main/pitch_mark.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// ------------------------------------------------------------------------ //
1616

1717
#include <algorithm> // std::transform
18-
#include <cmath> // std::cos, std::fmod, std::round, std::sin
18+
#include <cmath> // std::cos, std::fmod, std::round, std::sin, std::sqrt
1919
#include <fstream> // std::ifstream
2020
#include <iomanip> // std::setw
2121
#include <iostream> // std::cerr, std::cin, std::cout, std::endl, etc.

src/math/scalar_operation.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
#include "SPTK/math/scalar_operation.h"
1818

19-
#include <cmath> // std::atan, std::atanh, std::ceil, std::cos, std::exp, std::fabs, std::floor, std::fmod, std::log, std::pow, std::round, std::sin, std::sqrt, std::tan, std::tanh, std::trunc
19+
#include <cmath> // std::acos, std::asin, std::atan, std::atanh, std::ceil, std::cos, std::exp, std::fabs, std::floor, std::fmod, std::log, std::pow, std::round, std::sin, std::sqrt, std::tan, std::tanh, std::trunc
2020

2121
namespace {
2222

src/window/standard_window.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include "SPTK/window/standard_window.h"
1818

1919
#include <algorithm> // std::fill, std::min
20-
#include <cmath> // std::round
2120
#include <vector> // std::vector
2221

2322
#include "SPTK/window/cosine_window.h"

0 commit comments

Comments
 (0)