mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
univ.i Do not inline on Unix if non-gcc compiler
This commit is contained in:
parent
dc618189d5
commit
2090d65134
1 changed files with 5 additions and 2 deletions
|
@ -9,7 +9,6 @@ Created 1/20/1994 Heikki Tuuri
|
|||
#ifndef univ_i
|
||||
#define univ_i
|
||||
|
||||
|
||||
#if (defined(_WIN32) || defined(_WIN64))
|
||||
#define __WIN__
|
||||
#include <windows.h>
|
||||
|
@ -28,6 +27,11 @@ be defined:
|
|||
#else
|
||||
/* The Unix version */
|
||||
|
||||
/* Most C compilers other than gcc do not know 'extern inline' */
|
||||
#ifndef __GNUC__
|
||||
#define UNIV_MUST_NOT_INLINE
|
||||
#endif
|
||||
|
||||
/* Include two header files from MySQL to make the Unix flavor used
|
||||
in compiling more Posix-compatible. We assume that 'innobase' is a
|
||||
subdirectory of 'mysql'. */
|
||||
|
@ -37,7 +41,6 @@ subdirectory of 'mysql'. */
|
|||
/* Include <sys/stat.h> to get S_I... macros defined for os0file.c */
|
||||
#include <sys/stat.h>
|
||||
|
||||
|
||||
#undef PACKAGE
|
||||
#undef VERSION
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue