Skip to content

Commit

Permalink
[c++] include <cstdint> wherever uint8_t is used
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Dec 3, 2024
1 parent ea04c66 commit b5121a8
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/LightGBM/bin.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/file_io.h>

#include <cstdint>
#include <limits>
#include <string>
#include <functional>
Expand Down
1 change: 1 addition & 0 deletions include/LightGBM/cuda/cuda_column_data.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <LightGBM/bin.h>
#include <LightGBM/utils/openmp_wrapper.h>

#include <cstdint>
#include <vector>

namespace LightGBM {
Expand Down
1 change: 1 addition & 0 deletions include/LightGBM/cuda/cuda_row_data.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <LightGBM/train_share_states.h>
#include <LightGBM/utils/openmp_wrapper.h>

#include <cstdint>
#include <vector>

#define COPY_SUBROW_BLOCK_SIZE_ROW_DATA (1024)
Expand Down
1 change: 1 addition & 0 deletions include/LightGBM/dataset.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <LightGBM/utils/random.h>
#include <LightGBM/utils/text_reader.h>

#include <cstdint>
#include <string>
#include <functional>
#include <map>
Expand Down
1 change: 1 addition & 0 deletions include/LightGBM/feature_group.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <LightGBM/meta.h>
#include <LightGBM/utils/random.h>

#include <cstdint>
#include <cstdio>
#include <memory>
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions include/LightGBM/train_share_states.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <LightGBM/utils/threading.h>

#include <algorithm>
#include <cstdint>
#include <memory>
#include <vector>

Expand Down
1 change: 1 addition & 0 deletions include/LightGBM/tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <LightGBM/dataset.h>
#include <LightGBM/meta.h>

#include <cstdint>
#include <string>
#include <map>
#include <memory>
Expand Down
1 change: 1 addition & 0 deletions src/c_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

#include <string>
#include <cstdio>
#include <cstdint>
#include <functional>
#include <memory>
#include <mutex>
Expand Down
2 changes: 2 additions & 0 deletions src/io/cuda/cuda_column_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#include <LightGBM/cuda/cuda_column_data.hpp>

#include <cstdint>

namespace LightGBM {

CUDAColumnData::CUDAColumnData(const data_size_t num_data, const int gpu_device_id) {
Expand Down
1 change: 1 addition & 0 deletions src/io/json11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <LightGBM/utils/log.h>

#include <cmath>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <limits>
Expand Down

0 comments on commit b5121a8

Please sign in to comment.