mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +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:
@@ -23,7 +23,7 @@
|
||||
(defined(__alpha__) && defined(__GNUC__))
|
||||
#define HAVE_STACKTRACE 1
|
||||
#endif
|
||||
#elif defined(__WIN__) || defined(HAVE_PRINTSTACK)
|
||||
#elif defined(_WIN32) || defined(HAVE_PRINTSTACK)
|
||||
#define HAVE_STACKTRACE 1
|
||||
#endif
|
||||
|
||||
@@ -49,12 +49,12 @@ void my_write_core(int sig);
|
||||
# if BACKTRACE_DEMANGLE
|
||||
char *my_demangle(const char *mangled_name, int *status);
|
||||
# endif /* BACKTRACE_DEMANGLE */
|
||||
# ifdef __WIN__
|
||||
# ifdef _WIN32
|
||||
# define my_setup_stacktrace()
|
||||
void my_set_exception_pointers(EXCEPTION_POINTERS *ep);
|
||||
# else
|
||||
void my_setup_stacktrace(void);
|
||||
# endif /* __WIN__ */
|
||||
# endif /* _WIN32 */
|
||||
#else
|
||||
# define my_setup_stacktrace()
|
||||
#endif /* ! (defined(HAVE_STACKTRACE) || defined(HAVE_BACKTRACE)) */
|
||||
|
Reference in New Issue
Block a user