Skip to content

Commit c1ace0b

Browse files
committed
Optimizations within pb.h
1 parent 4598bbe commit c1ace0b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/pb.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/* Define this if your CPU / compiler combination does not support
1717
* unaligned memory access to packed structures. Note that packed
1818
* structures are only used when requested in .proto options. */
19-
/* #define PB_NO_PACKED_STRUCTS 1 */
19+
#define PB_NO_PACKED_STRUCTS 1
2020

2121
/* Increase the number of required fields that are tracked.
2222
* A compiler warning will tell if you need this. */
@@ -26,14 +26,14 @@
2626
/* #define PB_FIELD_32BIT 1 */
2727

2828
/* Disable support for error messages in order to save some code space. */
29-
/* #define PB_NO_ERRMSG 1 */
29+
#define PB_NO_ERRMSG 1
3030

3131
/* Disable support for custom streams (support only memory buffers). */
32-
/* #define PB_BUFFER_ONLY 1 */
32+
#define PB_BUFFER_ONLY 1
3333

3434
/* Disable support for 64-bit datatypes, for compilers without int64_t
3535
or to save some code space. */
36-
/* #define PB_WITHOUT_64BIT 1 */
36+
#define PB_WITHOUT_64BIT 1
3737

3838
/* Don't encode scalar arrays as packed. This is only to be used when
3939
* the decoder on the receiving side cannot process packed scalar arrays.

0 commit comments

Comments
 (0)