I am writing a library project in C, which may be built with or without QT. Is there any preprocessor directive (no extra headers are required) that can I use to distinguish whether QT is in use in the C code?
I would like to do somthing like:
#ifdef I_AM_QT
// some qt specific codes
#else
// some codes for other environments
#endif
Thanks.
#ifdef QT_CORE_LIB
// some qt specific codes
#else
// some codes for other environments
#endif
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With