Files
Petteri Aimonen ca01b338e9 Fix issue with unknown message sizes being referred inside oneof encoded size calculation (#569)
Nanopb generator attempts to calculate the maximum encoded size of messages
when possible. If the message size is unbounded due to e.g. callbacks, the
define for it will be skipped. However, for oneofs we need to calculate the
maximum of all fields inside it, which is not easily done in C in compile time.

The current method uses sizeof(union { .. }) to calculate the largest value.
A recent change in 3ff6743173 (#415, #494) moved the union to a separate line.

This in turn caused compilation errors when the union was defined but one of
the symbols it depends on (from another .proto file) was not defined.

This commit fixes it by adding #if defined() guard around the definition.
2020-09-10 15:34:36 +03:00
..
2019-11-27 16:45:22 -08:00
2020-06-23 15:03:40 +03:00
2019-05-31 21:09:57 -04:00
2017-10-01 22:16:38 +03:00
2019-12-16 13:05:18 +02:00
2020-01-09 10:44:15 +02:00
2019-12-18 19:38:57 +02:00