(svn r8061) -Fix r8055: obj-c can't handle templates

We will need to figure out a nicer solution for this, but now OSX compiles again
replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
bjarni 18 years ago
parent 8694ad9e0d
commit f348fc7b4c

@ -20,11 +20,14 @@
#undef max
#endif
/* Objective C don't like templates */
#ifdef __cplusplus
template <typename T>
static inline T max(T a, T b)
{
return a >= b ? a : b;
}
#endif
static inline int min(int a, int b) { if (a <= b) return a; return b; }

Loading…
Cancel
Save