Skip to content

Commit

Permalink
Add header missing when compiling with mingw-gcc
Browse files Browse the repository at this point in the history
Fixes this failure:

```
external/bazel_tools/src/tools/launcher/launcher_maker.cc:77:3: error: 'int64_t' was not declared in this scope
   77 |   int64_t bytes = 0;
      |   ^~~~~~~
external/bazel_tools/src/tools/launcher/launcher_maker.cc:22:1: note: 'int64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
   21 | #include "src/main/cpp/util/path_platform.h"
  +++ |+#include <cstdint>
   22 |
external/bazel_tools/src/tools/launcher/launcher_maker.cc:81:5: error: 'bytes' was not declared in this scope
   81 |     bytes += line.length();
      |     ^~~~~
external/bazel_tools/src/tools/launcher/launcher_maker.cc:86:44: error: 'bytes' was not declared in this scope
   86 |   dst.write(reinterpret_cast<const char*>(&bytes), sizeof(bytes));
      |                                            ^~~~~

```

Fixes bazelbuild/rules_go#3642

Closes #19187.

PiperOrigin-RevId: 554389451
Change-Id: I80f3e2e5ef5d02b5258e7ba133892e0c3380e6a3
  • Loading branch information
fmeum authored and copybara-github committed Aug 7, 2023
1 parent 6c61434 commit df21cb8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tools/launcher/launcher_maker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
Expand Down

0 comments on commit df21cb8

Please sign in to comment.