[Resolved] Conditional code based on library version?
Is it possible to check a library version and execute different code based on that version, perhaps with a preprocessor statement?
Specifically, depending on the version of libvte, I want to execute different code. Pseudocode:
Code:
#if vte_version < 0.25
vte_terminal_fork(...);
#else
vte_terminal_fork_full(...);
#endif
Re: Conditional code based on library version?
Figured it out, at least for vte:
Code:
#if VTE_CHECK_VERSION(0,25,0)
#else
#endif