Skip to content

Commit

Permalink
Fix #6589: Prevent warning due to redefinition of __STDC_FORMAT_MACROS.
Browse files Browse the repository at this point in the history
RELNOTES: None.
PiperOrigin-RevId: 220261241
  • Loading branch information
philwo authored and Copybara-Service committed Nov 6, 2018
1 parent 6a30ed6 commit 612b1ed
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,7 +15,9 @@
#ifndef BAZEL_SRC_TOOLS_SINGLEJAR_INPUT_JAR_H_
#define BAZEL_SRC_TOOLS_SINGLEJAR_INPUT_JAR_H_ 1

#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS 1
#endif

#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,7 +14,9 @@
#ifndef SRC_TOOLS_SINGLEJAR_TRANSIENT_BYTES_H_
#define SRC_TOOLS_SINGLEJAR_TRANSIENT_BYTES_H_

#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS 1
#endif

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

0 comments on commit 612b1ed

Please sign in to comment.