Hi,
I’m working on a project which is mixing C++ and C code. I’m now facing the problem that the C code uses #pragma instructions the compiler does not understand. I want to hide those using #ifndef __cplusplus but this define is only available when compiling .cpp files. While .c files are compiled this define is not set since the C compiler is being used.
Any ideas how I can set this define for the C compiler manually without interfeering with the C++ complier?
Using
within the .pro file will result in errors since the C++ compiler also defines this for himself.
Using:
Win7 64bit
Qt 5.3.2
MinGW, GCC 4.8.2
Bookmarks