diff options
author | Lev Walkin <vlm@lionet.info> | 2004-08-11 07:48:19 +0000 |
---|---|---|
committer | Lev Walkin <vlm@lionet.info> | 2004-08-11 07:48:19 +0000 |
commit | 90fcd44d253273c5fc351e76f4fc8fad73cc024e (patch) | |
tree | 40a13e4dc8a2aa16677fb26be1382e5aff9bc893 /skeletons | |
parent | 7e0d2cb62c94d8bae2964e55c1f7b35972b258cb (diff) |
portability
Diffstat (limited to 'skeletons')
-rw-r--r-- | skeletons/OBJECT_IDENTIFIER.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/skeletons/OBJECT_IDENTIFIER.c b/skeletons/OBJECT_IDENTIFIER.c index 0f713071..216aed83 100644 --- a/skeletons/OBJECT_IDENTIFIER.c +++ b/skeletons/OBJECT_IDENTIFIER.c @@ -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; |