summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2016-01-27 18:59:54 +0200
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2016-01-27 18:59:54 +0200
commit8d35488bcde1cc6d912d4c875bcf6d2745899d7d (patch)
tree3a45e5ae23a75912ea83848df4aca2effa88ce4a
parent2a851f039ad5252a32e3b82d15ce5a3bbb8a0b21 (diff)
Remove obsolete __BIG_ENDIAN__ compilation option.
This is now handled automatically using shift operations.
-rw-r--r--docs/reference.rst4
-rw-r--r--pb.h4
2 files changed, 0 insertions, 8 deletions
diff --git a/docs/reference.rst b/docs/reference.rst
index 296bc78c..be6567ee 100644
--- a/docs/reference.rst
+++ b/docs/reference.rst
@@ -20,10 +20,6 @@ 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
- floats in big-endian format. Mixed-endian
- systems (different layout for ints and floats)
- are currently not supported.
PB_NO_PACKED_STRUCTS Disable packed structs. Increases RAM usage but
is necessary on some platforms that do not
support unaligned memory access.
diff --git a/pb.h b/pb.h
index 92c5a702..50f71e81 100644
--- a/pb.h
+++ b/pb.h
@@ -13,10 +13,6 @@
/* Enable support for dynamically allocated fields */
/* #define PB_ENABLE_MALLOC 1 */
-/* Define this if your CPU architecture is big endian, i.e. it
- * stores the most-significant byte first. */
-/* #define __BIG_ENDIAN__ 1 */
-
/* Define this if your CPU / compiler combination does not support
* unaligned memory access to packed structures. */
/* #define PB_NO_PACKED_STRUCTS 1 */