Fixing all headers/namespaces/name lookup problems that hinder a GCC 4.3.2

build. I sure hope that this doesn't break the build for anyone else.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28992 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz
2009-01-23 03:05:15 +00:00
parent 7e359a9b53
commit fb3e35fcec
60 changed files with 399 additions and 342 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ All rights reserved.
#define __OPEN_HASH_TABLE__
#include <malloc.h>
#include <new.h>
#include <new>
// don't include <Debug.h>
#define ASSERT(E) (void)0
@@ -4,7 +4,7 @@
*/
#include "MasterServerDevice.h"
#include <fstream.h>
#include <fstream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -133,7 +133,7 @@ public:
typedef HashTableLink<ThisType> HashLink;
typedef typename Addressing::AddressType AddressType;
typedef MulticastFilter<Addressing> Filter;
typedef AddressSet<AddressType> AddressSet;
typedef ::AddressSet<AddressType> AddressSet;
enum FilterMode {
kInclude,
@@ -96,7 +96,7 @@ public:
bool IsActive() const { return fActive; }
void SetActive(bool newValue) { fActive = newValue; }
HashTableLink<UdpEndpoint> *HashTableLink() { return &fLink; }
::HashTableLink<UdpEndpoint> *HashTableLink() { return &fLink; }
private:
UdpDomainSupport *fManager;
@@ -143,7 +143,7 @@ struct UdpHashDefinition {
&& endpoint->PeerAddress().EqualTo(key.second, true);
}
HashTableLink<UdpEndpoint> *GetLink(UdpEndpoint *endpoint) const
::HashTableLink<UdpEndpoint> *GetLink(UdpEndpoint *endpoint) const
{
return endpoint->HashTableLink();
}
@@ -90,7 +90,7 @@ public:
return fAddress;
}
HashTableLink<UnixEndpoint>* HashTableLink()
::HashTableLink<UnixEndpoint>* HashTableLink()
{
return &fAddressHashLink;
}
@@ -1,7 +1,7 @@
//--------This file shamelessly stolen from Jeremy Friesner's excellent MUSCLE---------
/* This file is Copyright 2000 Level Control Systems. See the included LICENSE.txt file for details. */
#include <new.h>
#include <new>
#include <stdio.h>
#include "StringMatcher.h"
@@ -6,6 +6,7 @@
#include <Autolock.h>
#include <assert.h>
#include <stdio.h>
#include <string.h>
#define TRACE_THIS 0
#if TRACE_THIS
@@ -6,6 +6,7 @@
#include "OggFormats.h"
#include <Autolock.h>
#include <stdio.h>
#include <string.h>
#define TRACE_THIS 0
#if TRACE_THIS
@@ -1,5 +1,6 @@
#include "OggTrack.h"
#include <stdio.h>
#include <string.h>
#define TRACE_THIS 0
#if TRACE_THIS
@@ -1,6 +1,8 @@
// Sun, 18 Jun 2000
// Y.Takagi
#include <string.h>
#include <Button.h>
#include <Rect.h>
#include <TextControl.h>
@@ -8,6 +8,7 @@
#include <pwd.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include "URL.h"
+1
View File
@@ -2,6 +2,7 @@
// Y.Takagi
#include <cstring>
#include <stdlib.h>
#include "URL.h"
URL::URL(const char *spec)
@@ -9,6 +9,7 @@
#include <Alert.h>
#include <algorithm>
#include <string.h>
#include "LpsClient.h"
#include "LprSetupDlg.h"
@@ -9,6 +9,7 @@
#include <netdb.h>
#include <pwd.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <iomanip>
#include <sstream>
@@ -8,7 +8,9 @@
# include <net/socket.h>
# include <net/netdb.h>
#endif
#include <errno.h>
#include <string.h>
#include <iomanip>
#include <algorithm>
@@ -10,6 +10,7 @@
#include <arpa/inet.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include "Socket.h"
@@ -9,6 +9,7 @@
#include "BMPTranslator.h"
#include "BMPView.h"
#include <algorithm>
#include <new>
#include <stdio.h>
#include <stdlib.h>
@@ -16,6 +17,7 @@
using std::nothrow;
using std::min;
//#define INFO(x) printf(x);
#define INFO(x)
@@ -1706,12 +1708,12 @@ BMPTranslator::translate_from_bmp(BPositionIO *inSource, uint32 outType,
if (!frommsformat && os2skip)
inSource->Seek(os2skip, SEEK_CUR);
rd = min(1024, fileHeader.fileSize - rdtotal);
rd = min((size_t)1024, fileHeader.fileSize - rdtotal);
rd = inSource->Read(buf, rd);
while (rd > 0) {
outDestination->Write(buf, rd);
rdtotal += rd;
rd = min(1024, fileHeader.fileSize - rdtotal);
rd = min((size_t)1024, fileHeader.fileSize - rdtotal);
rd = inSource->Read(buf, rd);
}
if (rd == 0)
@@ -17,6 +17,7 @@
#include <String.h>
#include <UTF8.h>
#include <algorithm>
#include <new>
#include <string.h>
#include <stdio.h>
@@ -24,6 +25,7 @@
using namespace BPrivate;
using namespace std;
#define READ_BUFFER_SIZE 32768
@@ -970,7 +972,7 @@ translate_from_stxt(BPositionIO *inSource, BPositionIO *outDestination,
// When outputting B_STYLED_TEXT_FORMAT, the loop stops when all
// of the data from inSource has been read and written.
if (btoplain)
nreed = min(READ_BUFFER_SIZE,
nreed = min((size_t)READ_BUFFER_SIZE,
txtheader.header.data_size - ntotalread);
else
nreed = READ_BUFFER_SIZE;
@@ -982,7 +984,7 @@ translate_from_stxt(BPositionIO *inSource, BPositionIO *outDestination,
if (btoplain) {
ntotalread += nread;
nreed = min(READ_BUFFER_SIZE,
nreed = min((size_t)READ_BUFFER_SIZE,
txtheader.header.data_size - ntotalread);
} else
nreed = READ_BUFFER_SIZE;
+3
View File
@@ -1,5 +1,8 @@
#include "FtpClient.h"
#include <stdlib.h>
#include <string.h>
FtpClient::FtpClient()
: FileUploadClient(),
fState(0),
+1 -1
View File
@@ -12,7 +12,7 @@
#include <Debug.h>
#include <String.h>
#include <ostream.h>
#include <ostream>
#include <list>
#include <utility>
+1 -1
View File
@@ -22,7 +22,7 @@
#include "ImportContext.h"
#include "ExportContext.h"
#include <ostream.h>
#include <ostream>
#include "cortex_defs.h"
__BEGIN_CORTEX_NAMESPACE
+3 -1
View File
@@ -8,9 +8,10 @@
*/
#include "InfoWindow.h"
#include <pair.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <utility>
#include <vector>
#include <StringView.h>
@@ -22,6 +23,7 @@
using std::string;
using std::vector;
using std::pair;
LeftView::LeftView(BRect frame, BBitmap* icon)
: BView(frame, NULL, B_FOLLOW_NONE, B_WILL_DRAW),
+3
View File
@@ -8,6 +8,9 @@
*/
#include "Scanner.h"
#include <stdlib.h>
#include <string.h>
#include <Directory.h>
#include "Common.h"
+1
View File
@@ -9,6 +9,7 @@
#include "Snapshot.h"
#include <stdio.h>
#include <string.h>
#include <Directory.h>
#include <Mime.h>
@@ -9,7 +9,7 @@
#ifndef COMMAND_STACK_H
#define COMMAND_STACK_H
#include <stack.h>
#include <stack>
#include <Locker.h>
@@ -39,7 +39,7 @@ class CommandStack : public BLocker,
private:
status_t _AddCommand(Command* command);
typedef stack<Command*> command_stack;
typedef std::stack<Command*> command_stack;
command_stack fUndoHistory;
command_stack fRedoHistory;
@@ -9,7 +9,7 @@
#include "ScrollView.h"
#include <algobase.h>
#include <algorithm>
#include <stdio.h>
#include <string.h>
@@ -24,6 +24,7 @@
#include "Scrollable.h"
#include "ScrollCornerBitmaps.h"
using namespace std;
// #pragma mark - InternalScrollBar
@@ -8,11 +8,13 @@
#include "Scrollable.h"
#include <algobase.h>
#include <algorithm>
#include <stdio.h>
#include "Scroller.h"
using namespace std;
// constructor
Scrollable::Scrollable()
: fDataRect(0.0, 0.0, 0.0, 0.0),
@@ -8,6 +8,8 @@
#include "StateView.h"
#include <new>
#include <Message.h>
#include <MessageFilter.h>
#include <TextView.h>
@@ -8,6 +8,7 @@
#include "PathListView.h"
#include <new>
#include <stdio.h>
#include <Application.h>
@@ -8,6 +8,7 @@
#include "StyleListView.h"
#include <new>
#include <stdio.h>
#include <Application.h>
+2
View File
@@ -8,6 +8,8 @@
#include "StyleView.h"
#include <new>
#if __HAIKU__
# include "GridLayout.h"
# include "GroupLayout.h"
@@ -9,6 +9,7 @@
#include "Exporter.h"
#include <fs_attr.h>
#include <new>
#include <stdio.h>
#include <Alert.h>
@@ -9,6 +9,7 @@
#include "RDefExporter.h"
#include <stdio.h>
#include <string.h>
#include <DataIO.h>
@@ -9,6 +9,7 @@
#include "SourceExporter.h"
#include <stdio.h>
#include <string.h>
#include <DataIO.h>
@@ -19,6 +19,7 @@
#include <Window.h>
#include <map>
#include <string.h>
#include "TransportButton.h"
#include "DrawingTidbits.h"
@@ -1,6 +1,6 @@
// PlaybackManager.cpp
#include <algobase.h>
#include <algorithm>
#include <stdio.h>
#include <Message.h>
@@ -13,6 +13,8 @@
#include "PlaybackManager.h"
using namespace std;
//#define TRACE_NODE_MANAGER
#ifdef TRACE_NODE_MANAGER
# define TRACE(x...) printf(x)
@@ -5,7 +5,6 @@
#include "AudioAdapter.h"
#include <new>
#include <algobase.h>
#include <stdio.h>
#include <string.h>
@@ -5,7 +5,6 @@
#include "AudioChannelConverter.h"
#include <new>
#include <algobase.h>
#include <stdio.h>
#include <string.h>
@@ -6,8 +6,6 @@
#include "AudioFormatConverter.h"
#include <algobase.h>
#include <ByteOrder.h>
#include <MediaDefs.h>
@@ -2,11 +2,13 @@
* Copyright © 2000-2006 Ingo Weinhold <ingo_weinhold@gmx.de>
* All rights reserved. Distributed under the terms of the MIT licensce.
*/
#include <algobase.h>
#include <algorithm>
#include <string.h>
#include "AudioReader.h"
using std::swap;
AudioReader::AudioReader()
: fFormat(),
@@ -4,7 +4,6 @@
*/
#include "AudioResampler.h"
#include <algobase.h>
#include <stdio.h>
#include "SampleBuffer.h"
+1 -1
View File
@@ -22,7 +22,7 @@
#include "Playlist.h"
#include <debugger.h>
#include <new.h>
#include <new>
#include <stdio.h>
#include <Autolock.h>
@@ -6,15 +6,14 @@
#include "MediaTrackAudioSupplier.h"
#include <new>
#include <algobase.h>
#include <algorithm>
#include <stdio.h>
#include <string.h>
#include <MediaFile.h>
#include <MediaTrack.h>
using std::nothrow;
using namespace std;
//#define TRACE_AUDIO_SUPPLIER
#ifdef TRACE_AUDIO_SUPPLIER
@@ -4,7 +4,7 @@
*/
#include "ProxyAudioSupplier.h"
#include <algobase.h>
#include <algorithm>
#include <new>
#include <stdio.h>
#include <string.h>
@@ -18,6 +18,7 @@
#include "PlaybackManager.h"
using std::nothrow;
using std::swap;
//#define TRACE_PROXY_AUDIO_SUPPLIER
+2 -2
View File
@@ -8,7 +8,7 @@
#ifndef COMMAND_STACK_H
#define COMMAND_STACK_H
#include <stack.h>
#include <stack>
#include "Notifier.h"
@@ -38,7 +38,7 @@ class CommandStack : public Notifier {
RWLocker* fLocker;
typedef stack<Command*> command_stack;
typedef std::stack<Command*> command_stack;
command_stack fUndoHistory;
command_stack fRedoHistory;
+1
View File
@@ -9,6 +9,7 @@
#include <SupportDefs.h>
#include <stdlib.h>
template<class T> class Stack {
public:
+2
View File
@@ -11,6 +11,8 @@
#include "SudokuSolver.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
SudokuGenerator::SudokuGenerator()
{
+1 -1
View File
@@ -46,7 +46,7 @@ const uint32 kMsgExportAs = 'expt';
class GenerateSudoku {
public:
GenerateSudoku(SudokuField& target, int32 level, BMessenger progress,
GenerateSudoku(SudokuField& field, int32 level, BMessenger progress,
BMessenger target);
~GenerateSudoku();
+1
View File
@@ -10,6 +10,7 @@
#include <sys/stat.h>
#include <string>
#include <string.h>
#include <debugger.h>
+2
View File
@@ -9,6 +9,8 @@
#include "TypeHandler.h"
#include <string.h>
#include "Context.h"
#include "MemoryReader.h"
#include "Syscall.h"
+2
View File
@@ -8,6 +8,8 @@
#include "AddOnMonitorHandler.h"
#include <string.h>
#include <Directory.h>
+1
View File
@@ -7,6 +7,7 @@
#include <InterfaceDefs.h>
#include <math.h>
#include <memory>
#include <string.h>
#include "Halftone.h"
#include "ValidRect.h"
#include "DbgMsg.h"
+3 -3
View File
@@ -10,8 +10,8 @@
#include <Bitmap.h>
#include <stdio.h>
#include <algo.h>
#include <stack.h>
#include <algorithm>
#include <stack>
#include "DrawState.h"
#include "GlyphLayoutEngine.h"
@@ -489,7 +489,7 @@ DrawingEngine::CopyRegion(/*const*/ BRegion* region,
}
}
// put all nodes onto a stack that have an "indegree" count of zero
stack<node*> inDegreeZeroNodes;
std::stack<node*> inDegreeZeroNodes;
for (int32 i = 0; i < count; i++) {
if (nodes[i].in_degree == 0) {
inDegreeZeroNodes.push(&nodes[i]);
+2
View File
@@ -17,6 +17,8 @@
#include <netdb.h>
#include <netinet/in.h>
#include <new>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <vector>
@@ -6,6 +6,7 @@
#include <map>
#include <new>
#include <set>
#include <string.h>
#include <AutoDeleter.h>
#include <Autolock.h>
+2
View File
@@ -22,6 +22,8 @@
#include <Roster.h>
#include <storage_support.h>
#include <string.h>
#define DBG(x) (x)
//#define DBG(x)
#define OUT printf
@@ -4,6 +4,7 @@
*/
#include <new>
#include <string.h>
#include <signal.h>
#include <unistd.h>
+1
View File
@@ -24,6 +24,7 @@
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include "AppInfoListMessagingTargetSet.h"
#include "Debug.h"
@@ -11,6 +11,7 @@
#include "CreateAppMetaMimeThread.h"
#include <stdio.h>
#include <stdlib.h>
#include <AppFileInfo.h>
#include <Bitmap.h>
@@ -9,6 +9,9 @@
#include "UpdateMimeInfoThread.h"
#include <stdlib.h>
#include <string.h>
#include <AppFileInfo.h>
#include <Bitmap.h>
#include <fs_attr.h>