Skip to content

Commit f9e63b7

Browse files
committed
MariaRocks port: __PRETTY_FUNCTION__ is a gcc extension. Use __func__ when it is not available
For example, on Windows.
1 parent 48a5dd9 commit f9e63b7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

storage/rocksdb/rdb_utils.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,11 @@ namespace myrocks {
113113
contains the signature of the function as well as its bare name and provides
114114
therefore more context when interpreting the logs.
115115
*/
116-
#define DBUG_ENTER_FUNC() DBUG_ENTER(__PRETTY_FUNCTION__)
116+
#ifdef __GNUC__
117+
# define DBUG_ENTER_FUNC() DBUG_ENTER(__PRETTY_FUNCTION__)
118+
#else
119+
# define DBUG_ENTER_FUNC() DBUG_ENTER(__func__)
120+
#endif
117121

118122
/*
119123
Error handling pattern used across MySQL abides by the following rules: "All

0 commit comments

Comments
 (0)