@@ -144,7 +144,7 @@ inline static void round_up(size_t *v, size_t b)
144
144
* v += b - (* v % b );
145
145
}
146
146
}
147
- inline static size_t max (size_t v , size_t v2 )
147
+ inline static size_t __objc_max (size_t v , size_t v2 )
148
148
{
149
149
return v > v2 ? v : v2 ;
150
150
}
@@ -249,7 +249,7 @@ static const char *sizeof_union_field(const char *type, size_t *size)
249
249
{
250
250
size_t field_size = 0 ;
251
251
const char * end = sizeof_type (type , & field_size );
252
- * size = max (* size , field_size );
252
+ * size = __objc_max (* size , field_size );
253
253
return end ;
254
254
}
255
255
@@ -263,15 +263,15 @@ static const char *alignof_type(const char *type, size_t *align)
263
263
#define APPLY_TYPE (typeName , name , capitalizedName , encodingChar ) \
264
264
case encodingChar:\
265
265
{\
266
- *align = max ((alignof(typeName) * 8), *align);\
266
+ *align = __objc_max ((alignof(typeName) * 8), *align);\
267
267
return type + 1;\
268
268
}
269
269
#define NON_INTEGER_TYPES 1
270
270
#define SKIP_ID 1
271
271
#include "type_encoding_cases.h"
272
272
case '@' :
273
273
{
274
- * align = max ((alignof(id ) * 8 ), * align );\
274
+ * align = __objc_max ((alignof(id ) * 8 ), * align );\
275
275
if (* (type + 1 ) == '?' )
276
276
{
277
277
type ++ ;
@@ -288,7 +288,7 @@ static const char *alignof_type(const char *type, size_t *align)
288
288
#define APPLY_TYPE (typeName , name , capitalizedName , encodingChar ) \
289
289
case encodingChar:\
290
290
{\
291
- *align = max ((alignof(_Complex typeName) * 8), *align);\
291
+ *align = __objc_max ((alignof(_Complex typeName) * 8), *align);\
292
292
return type + 1;\
293
293
}
294
294
#include "type_encoding_cases.h"
@@ -327,7 +327,7 @@ static const char *alignof_type(const char *type, size_t *align)
327
327
}
328
328
case '^' :
329
329
{
330
- * align = max ((alignof(void * ) * 8 ), * align );
330
+ * align = __objc_max ((alignof(void * ) * 8 ), * align );
331
331
// All pointers look the same to me.
332
332
size_t ignored = 0 ;
333
333
// Skip the definition of the pointeee type.
0 commit comments