Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
e434f799
Commit
e434f799
authored
Oct 06, 2006
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
univ.i: Indent some of the directives, and remove conditions about Windows
in the "#else" branch of "#if building on Windows".
parent
fcbfbc4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
34 deletions
+25
-34
include/univ.i
include/univ.i
+25
-34
No files found.
include/univ.i
View file @
e434f799
...
@@ -10,18 +10,18 @@ Created 1/20/1994 Heikki Tuuri
...
@@ -10,18 +10,18 @@ Created 1/20/1994 Heikki Tuuri
#
define
univ_i
#
define
univ_i
#
if
(
defined
(
WIN32
)
||
defined
(
_WIN32
)
||
defined
(
WIN64
)
||
defined
(
_WIN64
))
&
&
!defined(MYSQL_SERVER)
&
&
!defined(__WIN__)
#
if
(
defined
(
WIN32
)
||
defined
(
_WIN32
)
||
defined
(
WIN64
)
||
defined
(
_WIN64
))
&
&
!defined(MYSQL_SERVER)
&
&
!defined(__WIN__)
#
undef
__WIN__
#
undef
__WIN__
#
define
__WIN__
#
define
__WIN__
#
include
<
windows
.
h
>
#
include
<
windows
.
h
>
#
if
!
defined
(
WIN64
)
&
&
!defined(_WIN64)
#
if
!
defined
(
WIN64
)
&
&
!defined(_WIN64)
#
define
UNIV_CAN_USE_X86_ASSEMBLER
#
define
UNIV_CAN_USE_X86_ASSEMBLER
#
endif
#
endif
#
ifdef
_NT_
#
ifdef
_NT_
#
define
__NT__
#
define
__NT__
#
endif
#
endif
#
else
#
else
/* The defines used with MySQL */
/* The defines used with MySQL */
...
@@ -30,42 +30,33 @@ Created 1/20/1994 Heikki Tuuri
...
@@ -30,42 +30,33 @@ Created 1/20/1994 Heikki Tuuri
in compiling more Posix-compatible. These headers also define __WIN__
in compiling more Posix-compatible. These headers also define __WIN__
if we are compiling on Windows. */
if we are compiling on Windows. */
#
include
<
my_global
.
h
>
#
include
<
my_global
.
h
>
#
include
<
my_pthread
.
h
>
#
include
<
my_pthread
.
h
>
/* Include <sys/stat.h> to get S_I... macros defined for os0file.c */
/* Include <sys/stat.h> to get S_I... macros defined for os0file.c */
#
include
<
sys
/
stat
.
h
>
#
include
<
sys
/
stat
.
h
>
#
undef
PACKAGE
#
undef
PACKAGE
#
undef
VERSION
#
undef
VERSION
/* Include the header file generated by GNU autoconf */
/* Include the header file generated by GNU autoconf */
#
ifndef
__WIN__
#
include
"config.h"
#
include
"config.h"
#
endif
#
ifdef
HAVE_SCHED_H
#
include
<
sched
.
h
>
#
endif
/* When compiling for Itanium IA64, undefine the flag below to prevent use
of the 32-bit x86 assembler in mutex operations. */
#
if
defined
(
__WIN__
)
&
&
!defined(WIN64)
&
&
!defined(_WIN64)
#
ifdef
HAVE_SCHED_H
#
define
UNIV_CAN_USE_X86_ASSEMBLER
#
include
<
sched
.
h
>
#
endif
#
endif
/* We only try to do explicit inlining of functions with gcc and
/* We only try to do explicit inlining of functions with gcc and
Microsoft Visual C++ */
Microsoft Visual C++ */
#
if
!
defined
(
__GNUC__
)
&
&
!defined(__WIN
__)
#
if
!
defined
(
__GNUC
__
)
#
undef
UNIV_MUST_NOT_INLINE
/* Remove compiler warning */
#
undef
UNIV_MUST_NOT_INLINE
/* Remove compiler warning */
#
define
UNIV_MUST_NOT_INLINE
#
define
UNIV_MUST_NOT_INLINE
#
endif
#
endif
#
ifdef
HAVE_PREAD
#
ifdef
HAVE_PREAD
#
define
HAVE_PWRITE
#
define
HAVE_PWRITE
#
endif
#
endif
#
endif
/* #if (defined(WIN32) || ... */
#
endif
/* #if (defined(WIN32) || ... */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment