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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
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 @@ private:
...
@@ -97,7 +97,13 @@ private:
# 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 @@ private:
...
@@ -94,7 +94,13 @@ private:
# 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