Skip to content

Commit fd39f25

Browse files
committed
MariaRocks: fix compilation on Oracle Linux Server 7.3.
#define __STDC_FORMAT_MACROS. Unfortunately there is no single location that would be #includ'ed before everything else. Have to put the #define into each .cc file
1 parent e19f1dd commit fd39f25

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

storage/rocksdb/ha_rocksdb.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020

2121
#define MYSQL_SERVER 1
2222

23+
/* For use of 'PRIu64': */
24+
#define __STDC_FORMAT_MACROS
25+
2326
#include <my_config.h>
2427

2528
#include <inttypes.h>

storage/rocksdb/rdb_cf_manager.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
#pragma implementation // gcc: Class implementation
1919
#endif
2020

21+
/* For use of 'PRIu64': */
22+
#define __STDC_FORMAT_MACROS
23+
2124
#include <my_config.h>
2225

2326
#include <inttypes.h>

storage/rocksdb/rdb_datadic.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
#pragma implementation // gcc: Class implementation
1919
#endif
2020

21+
/* For use of 'PRIu64': */
22+
#define __STDC_FORMAT_MACROS
23+
2124
#include <my_config.h>
2225
/* This C++ file's header file */
2326
#include "./rdb_datadic.h"

0 commit comments

Comments
 (0)