Add missing headers (malloc/free, string functions, memcpy, etc. undeclared).

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28982 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz
2009-01-23 00:36:25 +00:00
parent b668bf21b2
commit 18cd67c760
15 changed files with 17 additions and 3 deletions
+1
View File
@@ -28,6 +28,7 @@
#include <new> #include <new>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
// debugging // debugging
+1
View File
@@ -15,6 +15,7 @@
#include <Looper.h> #include <Looper.h>
#include <algorithm> #include <algorithm>
#include <string.h>
using std::vector; using std::vector;
+2
View File
@@ -10,6 +10,8 @@
#include <MessagePrivate.h> #include <MessagePrivate.h>
#include <MessageUtils.h> #include <MessageUtils.h>
#include <stdlib.h>
namespace BPrivate { namespace BPrivate {
#define R5_MESSAGE_FLAG_VALID 0x01 #define R5_MESSAGE_FLAG_VALID 0x01
+1
View File
@@ -34,6 +34,7 @@
#include <new> #include <new>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
// get_raw_bytes_per_row // get_raw_bytes_per_row
+1
View File
@@ -7,6 +7,7 @@
#include <algorithm> #include <algorithm>
#include <new> #include <new>
#include <string.h>
#include <LayoutItem.h> #include <LayoutItem.h>
#include <List.h> #include <List.h>
+1
View File
@@ -9,6 +9,7 @@
#include <PictureDataWriter.h> #include <PictureDataWriter.h>
#include <stdio.h> #include <stdio.h>
#include <string.h>
#include <DataIO.h> #include <DataIO.h>
#include <Point.h> #include <Point.h>
+1
View File
@@ -14,6 +14,7 @@
#include <ctype.h> #include <ctype.h>
#include <math.h> #include <math.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#include <Application.h> #include <Application.h>
#include <Autolock.h> #include <Autolock.h>
+1
View File
@@ -7,6 +7,7 @@
#include <File.h> #include <File.h>
#include <map> #include <map>
#include <stdlib.h>
class _EXPORT BRemoteMailStorageProtocol; class _EXPORT BRemoteMailStorageProtocol;
+2 -2
View File
@@ -2,7 +2,7 @@
* Copyright 2004-2007, Ingo Weinhold, bonefish@users.sf.net. All rights reserved. * Copyright 2004-2007, Ingo Weinhold, bonefish@users.sf.net. All rights reserved.
* Distributed under the terms of the MIT License. * Distributed under the terms of the MIT License.
*/ */
#include <new.h> #include <new>
#include <string.h> #include <string.h>
#include "HashString.h" #include "HashString.h"
@@ -118,7 +118,7 @@ HashString::_SetTo(const char *string, int32 length)
bool result = true; bool result = true;
Unset(); Unset();
if (string && length > 0) { if (string && length > 0) {
fString = new(nothrow) char[length + 1]; fString = new(std::nothrow) char[length + 1];
if (fString) { if (fString) {
memcpy(fString, string, length); memcpy(fString, string, length);
fString[length] = '\0'; fString[length] = '\0';
+1
View File
@@ -9,6 +9,7 @@
#include <new> #include <new>
#include <set> #include <set>
#include <stdlib.h>
#include <string> #include <string>
#include <AppFileInfo.h> #include <AppFileInfo.h>
+1
View File
@@ -24,6 +24,7 @@
#include <fcntl.h> #include <fcntl.h>
#include <new> #include <new>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
+1
View File
@@ -8,6 +8,7 @@
*/ */
#include <new> #include <new>
#include <string.h>
#include <SymLink.h> #include <SymLink.h>
#include <Directory.h> #include <Directory.h>
+1 -1
View File
@@ -25,7 +25,7 @@
#include <fs_attr.h> // For struct attr_info #include <fs_attr.h> // For struct attr_info
#include <new> // For new(nothrow) #include <new> // For new(nothrow)
#include <stdio.h> #include <stdio.h>
#include <string> #include <string.h>
#include "mime/database_support.h" #include "mime/database_support.h"
+1
View File
@@ -9,6 +9,7 @@
#include <sniffer/Err.h> #include <sniffer/Err.h>
#include <new> #include <new>
#include <string.h>
using namespace BPrivate::Storage::Sniffer; using namespace BPrivate::Storage::Sniffer;
@@ -33,6 +33,7 @@
#include <new> #include <new>
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#ifdef HAIKU_TARGET_PLATFORM_HAIKU #ifdef HAIKU_TARGET_PLATFORM_HAIKU
extern "C" status_t _kern_get_safemode_option(const char *parameter, extern "C" status_t _kern_get_safemode_option(const char *parameter,