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

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -