Commit f9e63b7c authored by Sergei Petrunia's avatar Sergei Petrunia

MariaRocks port: __PRETTY_FUNCTION__ is a gcc extension. Use __func__ when it is not available

For example, on Windows.
parent 48a5dd94
...@@ -113,7 +113,11 @@ namespace myrocks { ...@@ -113,7 +113,11 @@ namespace myrocks {
contains the signature of the function as well as its bare name and provides contains the signature of the function as well as its bare name and provides
therefore more context when interpreting the logs. therefore more context when interpreting the logs.
*/ */
#define DBUG_ENTER_FUNC() DBUG_ENTER(__PRETTY_FUNCTION__) #ifdef __GNUC__
# define DBUG_ENTER_FUNC() DBUG_ENTER(__PRETTY_FUNCTION__)
#else
# define DBUG_ENTER_FUNC() DBUG_ENTER(__func__)
#endif
/* /*
Error handling pattern used across MySQL abides by the following rules: "All Error handling pattern used across MySQL abides by the following rules: "All
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment