Add section in pb.h for changing compilation settings.

Update issue 76
Status: FixedInGit
This commit is contained in:
Petteri Aimonen
2013-07-06 15:27:31 +03:00
parent 4b705bf64b
commit 0ed3158560
2 changed files with 64 additions and 19 deletions

View File

@@ -11,9 +11,13 @@ Nanopb: API reference
Compilation options
===================
The following options can be specified using -D switch given to the C compiler
when compiling the nanopb library and applications using it. You must have the
same settings for the nanopb library and all code that includes pb.h.
The following options can be specified in one of two ways:
1. Using the -D switch on the C compiler command line.
2. By #defining them at the top of pb.h.
You must have the same settings for the nanopb library and all code that
includes pb.h.
============================ ================================================
__BIG_ENDIAN__ Set this if your platform stores integers and