I have a header file, where in I have used like:
#if defined(LINUX) || defined(ANDROID)
pthread_t gpthread;
#endif
Now, I would like to get only the header file content after passing -DLINUX in the compilation. Is there any way to get it ? If I use:
#arm-linux-androideabi-g++ -E main.c > temp
then the output is bit confusing to me.
You could just ask the compiler to do the preprocessing only on the header file: