As the title of the topic says, I can't figure out this basic concept of macro inclusion. I'm writing a small static lib, that has the following in the header file called main_header.h:
Basically, I have a main header file that includes a bunch of other headers. Each of these other headers has a corresponding cpp file. In each of these headers it checks for unicode and does the appropriate typedef. I wish to define Unicode in, lets say, the cpp file containing main, and then in that file include main-header.h.
The problem is that the unicode definition is not getting from main.cpp to source1.cpp (source file of header1.h), atleast not when I view it in the debugger.
I probably simply have a design flaw here.
I don't want to have to define UNICODE in any of the headers, because that is the purpose of my building a ANSI and UNICODE supported lib.
So I should really just create a typedef header that optionally defines Unicode and have all source files in the lib include it. And simply rebuild the lib based on what I need. I'm hoping someday Unicode will become the standard.