gcc 3 fixes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3845 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
c6decab16c
commit
3bc6d6c59a
@ -26,6 +26,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
#include <Rect.h>
|
||||
#include "AreaLink.h"
|
||||
#include <string.h>
|
||||
|
||||
//#define AL_DEBUG
|
||||
|
||||
|
@ -4,6 +4,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
// Standard Includes -----------------------------------------------------------
|
||||
#include <string.h>
|
||||
|
||||
// System Includes -------------------------------------------------------------
|
||||
#include <ByteOrder.h>
|
||||
|
@ -182,7 +182,7 @@ printf("PortLink::GetPort() returned %lu\n",target);
|
||||
return target;
|
||||
}
|
||||
|
||||
status_t PortLink::Flush(bigtime_t timeout=B_INFINITE_TIMEOUT)
|
||||
status_t PortLink::Flush(bigtime_t timeout)
|
||||
{
|
||||
#ifdef PLDEBUG
|
||||
printf("PortLink::Flush()\n");
|
||||
@ -228,7 +228,7 @@ printf("\tFlush(): flushing without attachments\n");
|
||||
}
|
||||
|
||||
|
||||
int8* PortLink::FlushWithReply(int32 *code, status_t *status, ssize_t *buffersize, bigtime_t timeout=B_INFINITE_TIMEOUT)
|
||||
int8* PortLink::FlushWithReply(int32 *code, status_t *status, ssize_t *buffersize, bigtime_t timeout)
|
||||
{
|
||||
// Deprecated call which functions exactly like PortLink(PortLink::ReplyData *data)
|
||||
#ifdef PLDEBUG
|
||||
@ -309,7 +309,7 @@ printf("PortLink::FlushWithReply(): bad port\n");
|
||||
}
|
||||
|
||||
|
||||
status_t PortLink::FlushWithReply(PortLink::ReplyData *data,bigtime_t timeout=B_INFINITE_TIMEOUT)
|
||||
status_t PortLink::FlushWithReply(PortLink::ReplyData *data,bigtime_t timeout)
|
||||
{
|
||||
#ifdef PLDEBUG
|
||||
printf("PortLink::FlushWithReply(ReplyData*,bigtime_t)\n");
|
||||
@ -396,7 +396,7 @@ printf("\tFlushWithReply(): unable to assign reply port to data\n");
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
status_t PortLink::FlushWithReply(PortMessage *msg,bigtime_t timeout=B_INFINITE_TIMEOUT)
|
||||
status_t PortLink::FlushWithReply(PortMessage *msg,bigtime_t timeout)
|
||||
{
|
||||
#ifdef PLDEBUG
|
||||
printf("PortLink::FlushWithReply(PortMessage*,bigtime_t)\n");
|
||||
|
@ -27,6 +27,7 @@
|
||||
#include <Point.h>
|
||||
#include <Rect.h>
|
||||
#include "PortMessage.h"
|
||||
#include <string.h>
|
||||
|
||||
PortMessage::PortMessage(const int32 &code, const void *buffer, const ssize_t &buffersize,
|
||||
const bool ©)
|
||||
@ -49,7 +50,7 @@ PortMessage::~PortMessage(void)
|
||||
}
|
||||
|
||||
|
||||
status_t PortMessage::ReadFromPort(const port_id &port, const bigtime_t &timeout=B_INFINITE_TIMEOUT)
|
||||
status_t PortMessage::ReadFromPort(const port_id &port, const bigtime_t &timeout)
|
||||
{
|
||||
if(_buffersize>0 && _buffer!=NULL)
|
||||
delete _buffer;
|
||||
|
@ -48,7 +48,7 @@ bool PortQueue::SetPort(const port_id &port)
|
||||
return _init;
|
||||
}
|
||||
|
||||
void PortQueue::GetMessagesFromPort(bool wait_for_messages=false)
|
||||
void PortQueue::GetMessagesFromPort(bool wait_for_messages)
|
||||
{
|
||||
if(_init)
|
||||
{
|
||||
|
@ -1,4 +1,5 @@
|
||||
#include "RegistrarThread.h"
|
||||
#include <string.h>
|
||||
|
||||
/*! \class RegistrarThread
|
||||
\brief Base thread class for threads spawned and managed by the registrar
|
||||
|
@ -25,6 +25,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
// Standard Includes -----------------------------------------------------------
|
||||
#include <string.h>
|
||||
|
||||
// System Includes -------------------------------------------------------------
|
||||
|
||||
|
@ -1571,10 +1571,10 @@ uint32 BWindow::Flags() const{
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
status_t BWindow::SetWindowAlignment(window_alignment mode,
|
||||
int32 h, int32 hOffset = 0,
|
||||
int32 width = 0, int32 widthOffset = 0,
|
||||
int32 v = 0, int32 vOffset = 0,
|
||||
int32 height = 0, int32 heightOffset = 0)
|
||||
int32 h, int32 hOffset,
|
||||
int32 width, int32 widthOffset,
|
||||
int32 v, int32 vOffset,
|
||||
int32 height, int32 heightOffset)
|
||||
{
|
||||
if ( !( (mode && B_BYTE_ALIGNMENT) ||
|
||||
(mode && B_PIXEL_ALIGNMENT) ) )
|
||||
@ -1624,11 +1624,11 @@ status_t BWindow::SetWindowAlignment(window_alignment mode,
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
status_t BWindow::GetWindowAlignment(window_alignment* mode = NULL,
|
||||
int32* h = NULL, int32* hOffset = NULL,
|
||||
int32* width = NULL, int32* widthOffset = NULL,
|
||||
int32* v = NULL, int32* vOffset = NULL,
|
||||
int32* height = NULL, int32* heightOffset = NULL) const
|
||||
status_t BWindow::GetWindowAlignment(window_alignment* mode,
|
||||
int32* h, int32* hOffset,
|
||||
int32* width, int32* widthOffset,
|
||||
int32* v, int32* vOffset,
|
||||
int32* height, int32* heightOffset) const
|
||||
{
|
||||
PortLink::ReplyData replyData;
|
||||
int8 *rb; // short for: replybuffer
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include <FindDirectory.h>
|
||||
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <Directory.h>
|
||||
#include <Entry.h>
|
||||
|
@ -4,6 +4,7 @@
|
||||
#include <Entry.h>
|
||||
#include <List.h>
|
||||
#include <Path.h>
|
||||
#include <string.h>
|
||||
|
||||
status_t
|
||||
entry_ref_to_path_adapter(dev_t device, ino_t directory, const char *name,
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include <RosterPrivate.h>
|
||||
|
||||
#include <unistd.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
enum {
|
||||
NOT_IMPLEMENTED = B_ERROR,
|
||||
|
Loading…
Reference in New Issue
Block a user