I am creating a lib.libc project in c. This lib.libc and public.h will then be provided to customers. I am running into some compiler errors and wanted to ask a few questions:
1. I have a #define __TIMERB0 within the public.h . I then #include public.h within private.h. The private.h has #ifdef based on __TIMERB0. However it greys out my conditional in the private.h signaling that it doesn't recognize it. The question: Should I be able to do this?
2. Assuming I can do #1. At this point then it would suggest that I could just include private.h within my .c files that are used to create the library given that I have the #include public.h within private.h, correct?
Thanks