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