I have to write a function which searches different directories for different (32/64 bit) machine.
For example :
//if 64 bit
Opts.AddPath("/usr/include/x86_64-linux-gnu");
//if 32 bit
Opts.AddPath("/usr/include/i386-linux-gnu");
Is there a predefined/compiler defined macro that lets me select a particular code.
I am using gcc on Ubuntu machine.
Thanks.
You could use the -D flag to define the constant when you’re compiling your code (link)