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
4e75c121
Commit
4e75c121
authored
May 27, 2004
by
tomas@poseidon.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for gcc version 3 bug
parent
1161f719
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
ndb/src/common/portlib/gcc.cpp
ndb/src/common/portlib/gcc.cpp
+1
-1
ndb/src/common/util/new.cpp
ndb/src/common/util/new.cpp
+4
-0
No files found.
ndb/src/common/portlib/gcc.cpp
View file @
4e75c121
...
...
@@ -2,6 +2,6 @@
/**
* GCC linking problem...
*/
#if
( __GNUC__ == 3 )
#if
def DEFINE_CXA_PURE_VIRTUAL
extern
"C"
{
int
__cxa_pure_virtual
()
{
return
0
;}
}
#endif
ndb/src/common/util/new.cpp
View file @
4e75c121
...
...
@@ -5,6 +5,8 @@ extern "C" {
void
(
*
ndb_new_handler
)()
=
0
;
}
#ifdef USE_MYSYS_NEW
void
*
operator
new
(
size_t
sz
)
{
void
*
p
=
malloc
(
sz
?
sz
:
1
);
...
...
@@ -36,3 +38,5 @@ void operator delete[] (void *ptr) throw ()
if
(
ptr
)
free
(
ptr
);
}
#endif // USE_MYSYS_NEW
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