Preparations for removing __BEOS__ from the compiler defines.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28305 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
#include <limits.h>
|
||||
#if __BEOS__
|
||||
#if (defined(__BEOS__) || defined(__HAIKU__))
|
||||
# include <stdio.h>
|
||||
#else
|
||||
#include <iostream.h>
|
||||
@@ -43,7 +43,7 @@ inline T* allocate(ptrdiff_t size, T*) {
|
||||
set_new_handler(0);
|
||||
T* tmp = (T*)(::operator new((size_t)(size * sizeof(T))));
|
||||
if (tmp == 0) {
|
||||
#if __BEOS__
|
||||
#if (defined(__BEOS__) || defined(__HAIKU__))
|
||||
fprintf(stderr, "out of memory\n");
|
||||
#else
|
||||
cerr << "out of memory" << endl;
|
||||
|
||||
Reference in New Issue
Block a user