mlot / nanopb

Automatically exported from code.google.com/p/nanopb
zlib License
0 stars 0 forks source link

Add #if guard for the compatibility of pb.h and generated files #129

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently mixing generated .pb.c files from older major series of nanopb can 
cause compilation errors.

It would be better to have something like this in pb.h:

#define PB_H_VERSION 30

and in .pb.c:

#if PB_H_VERSION != 30
#error Please regenerate this file with the current version of nanopb.
#endif

Original issue reported on code.google.com by Petteri.Aimonen on 4 Aug 2014 at 4:21

GoogleCodeExporter commented 9 years ago
This issue was updated by revision 3ed219382e55.

Original comment by Petteri.Aimonen on 19 Aug 2014 at 2:57

GoogleCodeExporter commented 9 years ago
Fix released in nanopb 0.3.0

Original comment by Petteri.Aimonen on 26 Aug 2014 at 3:28