Skip to content

Commit

Permalink
WT-7843 Add missing macros in cxx files to define PRIxMAX (#6804)
Browse files Browse the repository at this point in the history
  • Loading branch information
etienneptl committed Jul 15, 2021
1 parent 3920a8b commit 24b1487
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/cppsuite/test_harness/connection_manager.h
Expand Up @@ -29,6 +29,10 @@
#ifndef CONN_API_H
#define CONN_API_H

/* Following definitions are required in order to use printing format specifiers in C++. */
#define __STDC_LIMIT_MACROS
#define __STDC_FORMAT_MACROS

#include <mutex>

extern "C" {
Expand Down
4 changes: 4 additions & 0 deletions test/cppsuite/test_harness/util/scoped_types.h
Expand Up @@ -29,6 +29,10 @@
#ifndef SCOPED_TYPES_H
#define SCOPED_TYPES_H

/* Following definitions are required in order to use printing format specifiers in C++. */
#define __STDC_LIMIT_MACROS
#define __STDC_FORMAT_MACROS

extern "C" {
#include "test_util.h"
}
Expand Down

0 comments on commit 24b1487

Please sign in to comment.