Skip to content
Snippets Groups Projects
Commit 90fcd44d authored by Lev Walkin's avatar Lev Walkin
Browse files

portability

parent 7e0d2cb6
No related branches found
No related tags found
No related merge requests found
......@@ -509,9 +509,13 @@ OBJECT_IDENTIFIER_set_arcs(OBJECT_IDENTIFIER_t *oid, void *arcs, unsigned int ar
* These require special treatment.
*/
{
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;
uint8_t *tp;
/*
* Simulate first_value = arc0 * 40 + arc1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment