mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
build fix for netware
This commit is contained in:
parent
5572ab1462
commit
8161dcaacb
1 changed files with 14 additions and 1 deletions
|
@ -1489,11 +1489,24 @@ do { doubleget_union _tmp; \
|
|||
#define dlerror() ""
|
||||
#endif
|
||||
|
||||
#ifndef __NETWARE__
|
||||
/*
|
||||
Include standard definitions of operator new and delete.
|
||||
* Include standard definitions of operator new and delete.
|
||||
*/
|
||||
#ifdef __cplusplus
|
||||
#include <new>
|
||||
#endif
|
||||
#else
|
||||
/*
|
||||
* Define placement versions of operator new and operator delete since
|
||||
* we don't have <new> when building for Netware.
|
||||
*/
|
||||
#ifdef __cplusplus
|
||||
inline void *operator new(size_t, void *ptr) { return ptr; }
|
||||
inline void *operator new[](size_t, void *ptr) { return ptr; }
|
||||
inline void operator delete(void*, void*) { /* Do nothing */ }
|
||||
inline void operator delete[](void*, void*) { /* Do nothing */ }
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif /* my_global_h */
|
||||
|
|
Loading…
Reference in a new issue