Fix the build

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37110 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2010-06-12 07:09:45 +00:00
parent 3f28966548
commit 372eb8749c
2 changed files with 5 additions and 4 deletions
@@ -18,7 +18,7 @@
#include <TextControl.h> #include <TextControl.h>
#include <View.h> #include <View.h>
#include <List.h> #include <List.h>
#include <algobase.h> #include <algorithm>
#include <assert.h> #include <assert.h>
#include <stdio.h> #include <stdio.h>
@@ -250,8 +250,8 @@ void ViewLayoutFactory::ResizeAroundChildren(BView& view, BPoint margin)
BView* childView = view.ChildAt(i); BView* childView = view.ChildAt(i);
if (childView) { if (childView) {
BRect r = childView->Frame(); BRect r = childView->Frame();
fMax_x = max(fMax_x, r.right); fMax_x = std::max(fMax_x, r.right);
fMax_y = max(fMax_y, r.bottom); fMax_y = std::max(fMax_y, r.bottom);
} }
} }
@@ -14,6 +14,7 @@
#ifndef _ViewLayoutFactory_h #ifndef _ViewLayoutFactory_h
#define _ViewLayoutFactory_h #define _ViewLayoutFactory_h
#include <InterfaceKit.h>
#include <SupportDefs.h> #include <SupportDefs.h>
typedef enum { CORNER_TOPLEFT, CORNER_BOTTOMLEFT, typedef enum { CORNER_TOPLEFT, CORNER_BOTTOMLEFT,
@@ -76,4 +77,4 @@ public:
void ResizeAroundChildren(BView& view, BPoint margin); void ResizeAroundChildren(BView& view, BPoint margin);
}; };
#endif /* _ViewLayoutFactory_h */ #endif /* _ViewLayoutFactory_h */