Some systems don't have the standard stdint.h, stdbool.h, stddef.h, string.h
headers.
Add preprocessor option PB_SYSTEM_HEADER like this:
> #ifdef PB_SYSTEM_HEADER
> #include PB_SYSTEM_HEADER
> #else
> #include <stdint.h>
> #include <stdbool.h>
> #include <stddef.h>
> #include <string.h>
> #endif
Document the requirements for the header:
- Defining bool, uint8_t, (u)int32_t, (u)int64_t, size_t
- Provide memcpy() and memset()
- Provide offsetof() macro
- Maybe something else?
Add a test with a header that provides just these.
Original issue reported on code.google.com by Petteri.Aimonen on 2 Mar 2013 at 1:31
Original issue reported on code.google.com by
Petteri.Aimonen
on 2 Mar 2013 at 1:31