fix for gcc4 (strcmp needs cstring, nothrow is in std namespace)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19038 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2006-10-10 19:14:54 +00:00
parent a7181e951d
commit 127f01dd39
2 changed files with 3 additions and 1 deletions

View File

@ -57,7 +57,7 @@ _BZombieReplicantView_::MessageReceived(BMessage *msg)
"Can't create the \"%s\" replicant because the library is in the Trash. (%s)",
description, strerror(fError));
BAlert *alert = new (nothrow) BAlert("Error", error, "OK", NULL, NULL,
BAlert *alert = new (std::nothrow) BAlert("Error", error, "OK", NULL, NULL,
B_WIDTH_AS_USUAL, B_STOP_ALERT);
if (alert != NULL)
alert->Go();

View File

@ -12,6 +12,8 @@
#include <OS.h>
#include <image.h>
#include <cstring>
bool __gR5Compatibility = false;