portability

This commit is contained in:
Lev Walkin 2004-08-11 07:48:19 +00:00
parent 7e0d2cb62c
commit 90fcd44d25
1 changed files with 6 additions and 2 deletions

View File

@ -509,9 +509,13 @@ OBJECT_IDENTIFIER_set_arcs(OBJECT_IDENTIFIER_t *oid, void *arcs, unsigned int ar
* These require special treatment.
*/
{
uint8_t first_value[1 + arc_type_size]; /* of two arcs */
uint8_t *fv = first_value;
uint8_t *tp;
#ifdef __GNUC__
uint8_t first_value[1 + arc_type_size]; /* of two arcs */
#else
uint8_t *first_value = alloca(1 + arc_type_size);
#endif
uint8_t *fv = first_value;
/*
* Simulate first_value = arc0 * 40 + arc1;