Skip to content

Commit

Permalink
fix: add missing <cstdint> includes (#10421)
Browse files Browse the repository at this point in the history
Without the change build fails on this week's `gcc-13` as:

```
    In file included from google/cloud/internal/curl_handle.cc:15:
    google/cloud/internal/curl_handle.h:107:8:
      error: 'int32_t' in namespace 'std' does not name a type
      107 |   std::int32_t GetResponseCode();
          |        ^~~~~~~
```

`gcc-13` cleaned up `<string>` not to include `<cstdint>` for
newer c++ standards. Hence the build failures.
  • Loading branch information
trofi committed Dec 10, 2022
1 parent 5af495b commit 4fc780c
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions google/cloud/internal/curl_handle.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "google/cloud/version.h"
#include "absl/functional/function_ref.h"
#include <curl/curl.h>
#include <cstdint>
#include <string>
#include <type_traits>

Expand Down
1 change: 1 addition & 0 deletions google/cloud/internal/oauth2_credentials.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "google/cloud/status_or.h"
#include "google/cloud/version.h"
#include <chrono>
#include <cstdint>
#include <string>
#include <vector>

Expand Down
1 change: 1 addition & 0 deletions google/cloud/internal/rest_response.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "google/cloud/options.h"
#include "google/cloud/status_or.h"
#include "google/cloud/version.h"
#include <cstdint>
#include <map>

namespace google {
Expand Down
1 change: 1 addition & 0 deletions google/cloud/pubsub/ack_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#include "google/cloud/pubsub/version.h"
#include "google/cloud/status.h"
#include <cstdint>
#include <memory>

namespace google {
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/bucket_cors_entry.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#include "google/cloud/storage/version.h"
#include "absl/types/optional.h"
#include <cstdint>
#include <iosfwd>
#include <tuple>
#include <utility>
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/iam_policy.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#include "google/cloud/storage/version.h"
#include "google/cloud/status_or.h"
#include <cstdint>
#include <memory>
#include <string>
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/internal/hash_function_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "google/cloud/storage/internal/hash_function.h"
#include "google/cloud/storage/version.h"
#include <openssl/evp.h>
#include <cstdint>
#include <map>
#include <memory>
#include <string>
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/internal/object_read_source.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "google/cloud/storage/version.h"
#include "google/cloud/status_or.h"
#include "absl/types/optional.h"
#include <cstdint>

namespace google {
namespace cloud {
Expand Down

0 comments on commit 4fc780c

Please sign in to comment.