mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
__FUNCTION__ is not available everywhere.
make us see at least with gcc the function proto. this can be extended probably for windows too. Fix build on intelxeon3 (sun compiler and others) sql/event_scheduler.cc: __FUNCTION__ is not available everywhere. make us see at least with gcc the function proto. this can be extended probably for windows too.
This commit is contained in:
parent
749f183265
commit
05d44302b9
1 changed files with 9 additions and 2 deletions
|
@ -236,9 +236,16 @@
|
|||
about conditional variables used.
|
||||
*/
|
||||
|
||||
#ifdef __GNUC__
|
||||
#if __GNUC__ >= 2
|
||||
#define SCHED_FUNC __FUNCTION__
|
||||
#endif
|
||||
#else
|
||||
#define SCHED_FUNC "<unknown>"
|
||||
#endif
|
||||
|
||||
#define LOCK_SCHEDULER_DATA() lock_data(__FUNCTION__,__LINE__)
|
||||
#define UNLOCK_SCHEDULER_DATA() unlock_data(__FUNCTION__,__LINE__)
|
||||
#define LOCK_SCHEDULER_DATA() lock_data(SCHED_FUNC, __LINE__)
|
||||
#define UNLOCK_SCHEDULER_DATA() unlock_data(SCHED_FUNC, __LINE__)
|
||||
|
||||
|
||||
#ifndef DBUG_OFF
|
||||
|
|
Loading…
Add table
Reference in a new issue