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
50777e26
Commit
50777e26
authored
Aug 07, 2014
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Windows compiler error by disabling for now the nullptr class
implementation.
parent
6dad23f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
storage/innobase/btr/btr0defragment.cc
storage/innobase/btr/btr0defragment.cc
+7
-3
storage/xtradb/btr/btr0defragment.cc
storage/xtradb/btr/btr0defragment.cc
+6
-3
No files found.
storage/innobase/btr/btr0defragment.cc
View file @
50777e26
...
...
@@ -43,6 +43,7 @@ Modified 30/07/2014 Jan Lindström jan.lindstrom@skysql.com
Custom nullptr implementation for under g++ 4.6
*******************************************************/
// #pragma once
/*
namespace std
{
// based on SC22/WG21/N2431 = J16/07-0301
...
...
@@ -70,11 +71,11 @@ private:
void operator &() const;
template<typename any> void operator +(any) const
{
/
*I Love MSVC 2005!*/
/
/ I Love MSVC 2005!
}
template<typename any> void operator -(any) const
{
/
*I Love MSVC 2005!*/
/
/ I Love MSVC 2005!
}
};
static const nullptr_t __nullptr = {};
...
...
@@ -83,6 +84,8 @@ static const nullptr_t __nullptr = {};
#ifndef nullptr
#define nullptr std::__nullptr
#endif
*/
/**************************************************//**
End of Custom nullptr implementation for under g++ 4.6
*******************************************************/
...
...
@@ -323,7 +326,8 @@ btr_defragment_item_t*
btr_defragment_get_item
()
{
if
(
btr_defragment_wq
.
empty
())
{
return
nullptr
;
return
NULL
;
//return nullptr;
}
mutex_enter
(
&
btr_defragment_mutex
);
list
<
btr_defragment_item_t
*
>::
iterator
iter
=
btr_defragment_wq
.
begin
();
...
...
storage/xtradb/btr/btr0defragment.cc
View file @
50777e26
...
...
@@ -43,6 +43,7 @@ Modified 30/07/2014 Jan Lindström jan.lindstrom@skysql.com
/**************************************************//**
Custom nullptr implementation for under g++ 4.6
*******************************************************/
/*
// #pragma once
namespace std
{
...
...
@@ -71,11 +72,11 @@ private:
void operator &() const;
template<typename any> void operator +(any) const
{
/
*I Love MSVC 2005!*/
/
/ I Love MSVC 2005!
}
template<typename any> void operator -(any) const
{
/
*I Love MSVC 2005!*/
/
/ I Love MSVC 2005!
}
};
static const nullptr_t __nullptr = {};
...
...
@@ -84,6 +85,7 @@ static const nullptr_t __nullptr = {};
#ifndef nullptr
#define nullptr std::__nullptr
#endif
*/
/**************************************************//**
End of Custom nullptr implementation for under g++ 4.6
*******************************************************/
...
...
@@ -324,7 +326,8 @@ btr_defragment_item_t*
btr_defragment_get_item
()
{
if
(
btr_defragment_wq
.
empty
())
{
return
nullptr
;
return
NULL
;
//return nullptr;
}
mutex_enter
(
&
btr_defragment_mutex
);
list
<
btr_defragment_item_t
*
>::
iterator
iter
=
btr_defragment_wq
.
begin
();
...
...
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