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
fd7a8d18
Commit
fd7a8d18
authored
Apr 06, 2016
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compile error in UT_COMPILER_BARRIER on Visual Studio compiler.
parent
9794cf23
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
storage/innobase/include/ut0ut.h
storage/innobase/include/ut0ut.h
+7
-1
storage/xtradb/include/ut0ut.h
storage/xtradb/include/ut0ut.h
+7
-1
No files found.
storage/innobase/include/ut0ut.h
View file @
fd7a8d18
...
@@ -97,7 +97,13 @@ struct ut_when_dtor {
...
@@ -97,7 +97,13 @@ struct ut_when_dtor {
# define UT_RELAX_CPU() ((void)0)
/* avoid warning for an empty statement */
# define UT_RELAX_CPU() ((void)0)
/* avoid warning for an empty statement */
# endif
# endif
#define UT_COMPILER_BARRIER() __asm__ __volatile__ ("":::"memory")
#if defined (__GNUC__)
# define UT_COMPILER_BARRIER() __asm__ __volatile__ ("":::"memory")
#elif defined (_MSC_VER)
# define UT_COMPILER_BARRIER() MemoryBarrier()
#else
# define UT_COMPILER_BARRIER()
#endif
# if defined(HAVE_HMT_PRIORITY_INSTRUCTION)
# if defined(HAVE_HMT_PRIORITY_INSTRUCTION)
#include <sys/platform/ppc.h>
#include <sys/platform/ppc.h>
...
...
storage/xtradb/include/ut0ut.h
View file @
fd7a8d18
...
@@ -94,7 +94,13 @@ struct ut_when_dtor {
...
@@ -94,7 +94,13 @@ struct ut_when_dtor {
# define UT_RELAX_CPU() ((void)0)
/* avoid warning for an empty statement */
# define UT_RELAX_CPU() ((void)0)
/* avoid warning for an empty statement */
# endif
# endif
#define UT_COMPILER_BARRIER() __asm__ __volatile__ ("":::"memory")
#if defined (__GNUC__)
# define UT_COMPILER_BARRIER() __asm__ __volatile__ ("":::"memory")
#elif defined (_MSC_VER)
# define UT_COMPILER_BARRIER() MemoryBarrier()
#else
# define UT_COMPILER_BARRIER()
#endif
# if defined(HAVE_HMT_PRIORITY_INSTRUCTION)
# if defined(HAVE_HMT_PRIORITY_INSTRUCTION)
#include <sys/platform/ppc.h>
#include <sys/platform/ppc.h>
...
...
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