Skip to content

Commit

Permalink
Define __STDC_FORMAT_MACROS to 1 in singlejar
Browse files Browse the repository at this point in the history
Build on CentOS was failing because of missing macros, see http://ci.bazel.io/job/bazel-docker-tests/BAZEL_VERSION=HEAD,PLATFORM_NAME=docker/557/console.

Change-Id: I1b7b2ef2b1f26d4dac5439f4fcd01e2ef6553dcf
PiperOrigin-RevId: 155365288
  • Loading branch information
damienmg authored and kchodorow committed May 8, 2017
1 parent a6183de commit 070859a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tools/singlejar/input_jar.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#ifndef BAZEL_SRC_TOOLS_SINGLEJAR_INPUT_JAR_H_
#define BAZEL_SRC_TOOLS_SINGLEJAR_INPUT_JAR_H_ 1

#define __STDC_FORMAT_MACROS 1

#include <inttypes.h>
#include <stdlib.h>

Expand Down
2 changes: 2 additions & 0 deletions src/tools/singlejar/transient_bytes.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
#ifndef SRC_TOOLS_SINGLEJAR_TRANSIENT_BYTES_H_
#define SRC_TOOLS_SINGLEJAR_TRANSIENT_BYTES_H_

#define __STDC_FORMAT_MACROS 1

#include <inttypes.h>
#include <algorithm>
#include <ostream>
Expand Down

0 comments on commit 070859a

Please sign in to comment.