Fixed gcc 4(.1.2) build problems.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20320 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -112,14 +112,6 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
template<class T>
|
|
||||||
inline status_t
|
|
||||||
read_helper(BDataIO *stream, T &data)
|
|
||||||
{
|
|
||||||
return normalize_err(stream->Read((void *)&data, sizeof(T)));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
inline void
|
inline void
|
||||||
byte_swap(double &data)
|
byte_swap(double &data)
|
||||||
|
|||||||
@@ -40,8 +40,8 @@ private:
|
|||||||
friend class BDiskDeviceList;
|
friend class BDiskDeviceList;
|
||||||
friend class BDiskDeviceRoster;
|
friend class BDiskDeviceRoster;
|
||||||
|
|
||||||
BDiskDevice::BDiskDevice(const BDiskDevice &);
|
BDiskDevice(const BDiskDevice &);
|
||||||
BDiskDevice &BDiskDevice::operator=(const BDiskDevice &);
|
BDiskDevice &operator=(const BDiskDevice &);
|
||||||
|
|
||||||
static status_t _GetData(partition_id id, bool deviceOnly, bool shadow,
|
static status_t _GetData(partition_id id, bool deviceOnly, bool shadow,
|
||||||
size_t neededSize, user_disk_device_data **data);
|
size_t neededSize, user_disk_device_data **data);
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
#include "OggVorbisSeekable.h"
|
#include "OggVorbisSeekable.h"
|
||||||
#include "OggFormats.h"
|
#include "OggFormats.h"
|
||||||
#include <Autolock.h>
|
#include <Autolock.h>
|
||||||
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#define TRACE_THIS 1
|
#define TRACE_THIS 1
|
||||||
|
|||||||
@@ -694,6 +694,7 @@ BPositionIO *outDestination, color_space fromspace, MSInfoHeader &msheader)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case B_CMAP8:
|
case B_CMAP8:
|
||||||
|
{
|
||||||
bitspixel = bitsRowData + (i * bitsBytesPerPixel);
|
bitspixel = bitsRowData + (i * bitsBytesPerPixel);
|
||||||
bmppixel = bmpRowData + (i * 3);
|
bmppixel = bmpRowData + (i * 3);
|
||||||
rgb_color c = pmap->color_list[bitspixel[0]];
|
rgb_color c = pmap->color_list[bitspixel[0]];
|
||||||
@@ -701,6 +702,7 @@ BPositionIO *outDestination, color_space fromspace, MSInfoHeader &msheader)
|
|||||||
bmppixel[1] = c.green;
|
bmppixel[1] = c.green;
|
||||||
bmppixel[2] = c.red;
|
bmppixel[2] = c.red;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case B_GRAY8:
|
case B_GRAY8:
|
||||||
bitspixel = bitsRowData + (i * bitsBytesPerPixel);
|
bitspixel = bitsRowData + (i * bitsBytesPerPixel);
|
||||||
|
|||||||
@@ -28,6 +28,8 @@ class DiagramItemGroup;
|
|||||||
class DiagramView;
|
class DiagramView;
|
||||||
class DiagramBox;
|
class DiagramBox;
|
||||||
|
|
||||||
|
int compareSelectionTime(const void *lValue, const void *rValue);
|
||||||
|
|
||||||
class DiagramItem
|
class DiagramItem
|
||||||
{
|
{
|
||||||
friend class DiagramItemGroup;
|
friend class DiagramItemGroup;
|
||||||
|
|||||||
@@ -25,6 +25,10 @@ __BEGIN_CORTEX_NAMESPACE
|
|||||||
class DormantNodeView;
|
class DormantNodeView;
|
||||||
class MediaIcon;
|
class MediaIcon;
|
||||||
|
|
||||||
|
int compareName(const void *lValue, const void *rValue);
|
||||||
|
int compareAddOnID(const void *lValue, const void *rValue);
|
||||||
|
|
||||||
|
|
||||||
class DormantNodeListItem :
|
class DormantNodeListItem :
|
||||||
public BListItem {
|
public BListItem {
|
||||||
typedef BListItem _inherited;
|
typedef BListItem _inherited;
|
||||||
|
|||||||
@@ -24,6 +24,8 @@ class BBitmap;
|
|||||||
#include "cortex_defs.h"
|
#include "cortex_defs.h"
|
||||||
__BEGIN_CORTEX_NAMESPACE
|
__BEGIN_CORTEX_NAMESPACE
|
||||||
|
|
||||||
|
int compareTypeAndID(const void *lValue, const void *rValue);
|
||||||
|
|
||||||
class MediaJack : public DiagramEndPoint
|
class MediaJack : public DiagramEndPoint
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,8 @@
|
|||||||
#include "cortex_defs.h"
|
#include "cortex_defs.h"
|
||||||
__BEGIN_CORTEX_NAMESPACE
|
__BEGIN_CORTEX_NAMESPACE
|
||||||
|
|
||||||
|
int compareID(const void *lValue, const void *rValue);
|
||||||
|
|
||||||
class MediaIcon;
|
class MediaIcon;
|
||||||
class NodeRef;
|
class NodeRef;
|
||||||
|
|
||||||
|
|||||||
@@ -30,6 +30,7 @@
|
|||||||
#include <Rect.h>
|
#include <Rect.h>
|
||||||
#include <String.h>
|
#include <String.h>
|
||||||
|
|
||||||
|
#include <assert.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|||||||
@@ -172,7 +172,7 @@ protected:
|
|||||||
void GetVariableSet(vector<QcFloat> &vars)
|
void GetVariableSet(vector<QcFloat> &vars)
|
||||||
{ fSystem.GetVariableSet(vars); }
|
{ fSystem.GetVariableSet(vars); }
|
||||||
|
|
||||||
virtual void QcLinEqSolver::Print(ostream &os) const;
|
virtual void Print(ostream &os) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
inline QcLinEqSolver::QcLinEqSolver()
|
inline QcLinEqSolver::QcLinEqSolver()
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ class MessageDeletion : public BMailChainCallback {
|
|||||||
BEntry *entry;
|
BEntry *entry;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} // unnamed namspace
|
||||||
|
|
||||||
inline void
|
inline void
|
||||||
BMailProtocol::error_alert(const char *process, status_t error)
|
BMailProtocol::error_alert(const char *process, status_t error)
|
||||||
@@ -73,6 +74,8 @@ BMailProtocol::error_alert(const char *process, status_t error)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
|
||||||
class DeleteHandler : public BHandler {
|
class DeleteHandler : public BHandler {
|
||||||
public:
|
public:
|
||||||
DeleteHandler(BMailProtocol *a)
|
DeleteHandler(BMailProtocol *a)
|
||||||
@@ -150,6 +153,8 @@ class TrashMonitor : public BHandler {
|
|||||||
int32 id;
|
int32 id;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} // unnamed namspace
|
||||||
|
|
||||||
BMailProtocol::BMailProtocol(BMessage *settings, BMailChainRunner *run)
|
BMailProtocol::BMailProtocol(BMessage *settings, BMailChainRunner *run)
|
||||||
: BMailFilter(settings),
|
: BMailFilter(settings),
|
||||||
runner(run), trash_monitor(NULL), uids_on_disk(NULL)
|
runner(run), trash_monitor(NULL), uids_on_disk(NULL)
|
||||||
@@ -374,5 +379,3 @@ MessageDeletion::Callback(status_t result)
|
|||||||
if ((always && strcmp(B_MAIL_TYPE,type) == 0) || result == B_MAIL_DISCARD)
|
if ((always && strcmp(B_MAIL_TYPE,type) == 0) || result == B_MAIL_DISCARD)
|
||||||
us->DeleteMessage(message_id);
|
us->DeleteMessage(message_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -84,6 +84,8 @@ float FindWidestLabel(BView *view)
|
|||||||
return width;
|
return width;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // unnamed namspace
|
||||||
|
|
||||||
|
|
||||||
//----------------Real code----------------------
|
//----------------Real code----------------------
|
||||||
BMailProtocolConfigView::BMailProtocolConfigView(uint32 options_mask) : BView (BRect(0,0,100,20), "protocol_config_view", B_FOLLOW_LEFT | B_FOLLOW_TOP, B_WILL_DRAW) {
|
BMailProtocolConfigView::BMailProtocolConfigView(uint32 options_mask) : BView (BRect(0,0,100,20), "protocol_config_view", B_FOLLOW_LEFT | B_FOLLOW_TOP, B_WILL_DRAW) {
|
||||||
@@ -326,5 +328,3 @@ void BMailProtocolConfigView::GetPreferredSize(float *width, float *height) {
|
|||||||
*width = minWidth + 10;
|
*width = minWidth + 10;
|
||||||
*height = (CountChildren() * gItemHeight) + 5;
|
*height = (CountChildren() * gItemHeight) + 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace
|
|
||||||
|
|||||||
@@ -285,6 +285,8 @@ GetSubFolders(BDirectory *of, BStringList *folders, const char *prepend)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // unnamed namspace
|
||||||
|
|
||||||
|
|
||||||
BRemoteMailStorageProtocol::BRemoteMailStorageProtocol(BMessage *settings,
|
BRemoteMailStorageProtocol::BRemoteMailStorageProtocol(BMessage *settings,
|
||||||
BMailChainRunner *runner)
|
BMailChainRunner *runner)
|
||||||
@@ -301,8 +303,6 @@ BRemoteMailStorageProtocol::~BRemoteMailStorageProtocol()
|
|||||||
delete handler;
|
delete handler;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // empty namespace
|
|
||||||
|
|
||||||
|
|
||||||
//----BMailProtocol stuff
|
//----BMailProtocol stuff
|
||||||
|
|
||||||
|
|||||||
@@ -43,6 +43,8 @@ All rights reserved.
|
|||||||
|
|
||||||
namespace BPrivate {
|
namespace BPrivate {
|
||||||
|
|
||||||
|
bool ShouldShowDesktopPose(dev_t device, const Model *model, const PoseInfo *);
|
||||||
|
|
||||||
class DesktopPoseView : public BPoseView {
|
class DesktopPoseView : public BPoseView {
|
||||||
// overrides BPoseView to add desktop-view specific code
|
// overrides BPoseView to add desktop-view specific code
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ class MonitorView : public BView {
|
|||||||
void SetResolution(int32 width, int32 height);
|
void SetResolution(int32 width, int32 height);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
BRect MonitorView::MonitorBounds();
|
BRect MonitorBounds();
|
||||||
|
|
||||||
rgb_color fDesktopColor;
|
rgb_color fDesktopColor;
|
||||||
int32 fWidth;
|
int32 fWidth;
|
||||||
|
|||||||
Reference in New Issue
Block a user