What preprocessor can I used to detect if QT is used to build my codes -


i writing library project in c, may built or without qt. there preprocessor directive (no headers required) can use distinguish whether qt in use in c code?

i somthing like:

#ifdef i_am_qt // qt specific codes #else // codes other environments #endif 

thanks.

#ifdef qt_core_lib // qt specific codes #else // codes other environments #endif 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -