mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-25602 get rid of __WIN__ in favor of standard _WIN32
This fixed the MySQL bug# 20338 about misuse of double underscore prefix __WIN__, which was old MySQL's idea of identifying Windows Replace it by _WIN32 standard symbol for targeting Windows OS (both 32 and 64 bit) Not that connect storage engine is not fixed in this patch (must be fixed in "upstream" branch)
This commit is contained in:
@ -610,7 +610,7 @@ int PROFILING::fill_statistics_info(THD *thd_arg, TABLE_LIST *tables, Item *cond
|
||||
table->field[9]->store((uint32)(entry->rusage.ru_oublock -
|
||||
previous->rusage.ru_oublock));
|
||||
table->field[9]->set_notnull();
|
||||
#elif defined(__WIN__)
|
||||
#elif defined(_WIN32)
|
||||
ULONGLONG reads_delta = entry->io_count.ReadOperationCount -
|
||||
previous->io_count.ReadOperationCount;
|
||||
ULONGLONG writes_delta = entry->io_count.WriteOperationCount -
|
||||
@ -643,7 +643,7 @@ int PROFILING::fill_statistics_info(THD *thd_arg, TABLE_LIST *tables, Item *cond
|
||||
table->field[13]->store((uint32)(entry->rusage.ru_minflt -
|
||||
previous->rusage.ru_minflt), true);
|
||||
table->field[13]->set_notnull();
|
||||
#elif defined(__WIN__)
|
||||
#elif defined(_WIN32)
|
||||
/* Windows APIs don't easily distinguish between hard and soft page
|
||||
faults, so we just fill the 'major' column and leave the second NULL.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user