#ifdef condition
-
Hi all,
I have two different DEFINEs in the .pro file and I need to say something like the following:
#ifdef DEFINE1 || DEFINE2
...........................
...........................
#endifI have googled this issue and saw that people are solved it by using "#if defined" but it won't work either. It doesn't put any color on "defined" word. so I guess it doesn't recognize it. How can I put or condition to #ifdef in qt?
Thanks.
-
Hi,
a better construct would be:
@#if defined (DEFINE1) || defined (DEFINE2)
// Your code here
#endif@What doesn't work ?
-
It works :) I forgot using brackets for the defines. Thanks for your quick reply.
-
Great ! You can then mark this thread as solved