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 <stdio.h>
#include <stdlib.h>
// debugging
+1
View File
@@ -15,6 +15,7 @@
#include <Looper.h>
#include <algorithm>
#include <string.h>
using std::vector;
+2
View File
@@ -10,6 +10,8 @@
#include <MessagePrivate.h>
#include <MessageUtils.h>
#include <stdlib.h>
namespace BPrivate {
#define R5_MESSAGE_FLAG_VALID 0x01
+1
View File
@@ -34,6 +34,7 @@
#include <new>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// get_raw_bytes_per_row
+1
View File
@@ -7,6 +7,7 @@
#include <algorithm>
#include <new>
#include <string.h>
#include <LayoutItem.h>
#include <List.h>
+1
View File
@@ -9,6 +9,7 @@
#include <PictureDataWriter.h>
#include <stdio.h>
#include <string.h>
#include <DataIO.h>
#include <Point.h>
+1
View File
@@ -14,6 +14,7 @@
#include <ctype.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <Application.h>
#include <Autolock.h>
+1
View File
@@ -7,6 +7,7 @@
#include <File.h>
#include <map>
#include <stdlib.h>
class _EXPORT BRemoteMailStorageProtocol;
+2 -2
View File
@@ -2,7 +2,7 @@
* Copyright 2004-2007, Ingo Weinhold, bonefish@users.sf.net. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include <new.h>
#include <new>
#include <string.h>
#include "HashString.h"
@@ -118,7 +118,7 @@ HashString::_SetTo(const char *string, int32 length)
bool result = true;
Unset();
if (string && length > 0) {
fString = new(nothrow) char[length + 1];
fString = new(std::nothrow) char[length + 1];
if (fString) {
memcpy(fString, string, length);
fString[length] = '\0';
+1
View File
@@ -9,6 +9,7 @@
#include <new>
#include <set>
#include <stdlib.h>
#include <string>
#include <AppFileInfo.h>
+1
View File
@@ -24,6 +24,7 @@
#include <fcntl.h>
#include <new>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+1
View File
@@ -8,6 +8,7 @@
*/
#include <new>
#include <string.h>
#include <SymLink.h>
#include <Directory.h>
+1 -1
View File
@@ -25,7 +25,7 @@
#include <fs_attr.h> // For struct attr_info
#include <new> // For new(nothrow)
#include <stdio.h>
#include <string>
#include <string.h>
#include "mime/database_support.h"
+1
View File
@@ -9,6 +9,7 @@
#include <sniffer/Err.h>
#include <new>
#include <string.h>
using namespace BPrivate::Storage::Sniffer;
@@ -33,6 +33,7 @@
#include <new>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#ifdef HAIKU_TARGET_PLATFORM_HAIKU
extern "C" status_t _kern_get_safemode_option(const char *parameter,