diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2013-07-06 15:27:31 +0300 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2013-07-06 15:27:31 +0300 |
commit | 0ed3158560fe4b96d1d0df7f6b655409917f5989 (patch) | |
tree | 65933f62edb7d333336ac3f73800bd646a7945c5 /docs | |
parent | 4b705bf64b9a7b6bf0f61da3c84234847a7e8404 (diff) |
Add section in pb.h for changing compilation settings.
Update issue 76
Status: FixedInGit
Diffstat (limited to 'docs')
-rw-r--r-- | docs/reference.rst | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/docs/reference.rst b/docs/reference.rst index 6cd3c646..33884885 100644 --- a/docs/reference.rst +++ b/docs/reference.rst @@ -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 |