Let SM play nice with OS X's headers.
This commit is contained in:
@@ -202,10 +202,11 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
template <class T>
|
||||
class Rect
|
||||
namespace SM
|
||||
{
|
||||
template <class T>
|
||||
class Rect
|
||||
{
|
||||
public:
|
||||
Rect() {};
|
||||
Rect(T l, T t, T r, T b) { left = l, top = t, right = r, bottom = b; };
|
||||
@@ -228,10 +229,10 @@ public:
|
||||
bool operator!=( const Rect &other ) const { return !operator==(other); }
|
||||
|
||||
T left, top, right, bottom;
|
||||
};
|
||||
|
||||
typedef Rect<int> RectI;
|
||||
typedef Rect<float> RectF;
|
||||
};
|
||||
}
|
||||
typedef SM::Rect<int> RectI;
|
||||
typedef SM::Rect<float> RectF;
|
||||
|
||||
/* Structure for our custom vertex type. Note that these data structes
|
||||
* have the same layout that D3D expects. */
|
||||
|
||||
Reference in New Issue
Block a user