How to use #ifdef with an OR condition

cmacros

Sorry for asking very basic question. I would like to set OR condition in #ifdef directive.?
How to do that ?
I tried

#ifdef LINUX | ANDROID
...
..
#endif 

It did not work? What is the proper way?

Best Answer

Like this

#if defined(LINUX) || defined(ANDROID)