input/CdioParanoia: detect libcdio version at compile time

libcdio_paranoia was split from libcdio in version 90, and at the same
time, the header was moved from cdio/paranoia.h to
cdio/paranoia/paranoia.h.  We can easily detect this version at
compile time which is faster than configure time.
This commit is contained in:
Max Kellermann
2019-01-21 11:06:44 +01:00
parent 6a68e1c3f3
commit ca34f3250b
2 changed files with 2 additions and 5 deletions

View File

@@ -41,7 +41,8 @@
#include <stdlib.h>
#include <assert.h>
#ifdef HAVE_CDIO_PARANOIA_PARANOIA_H
#include <cdio/version.h>
#if LIBCDIO_VERSION_NUM >= 90
#include <cdio/paranoia/paranoia.h>
#else
#include <cdio/paranoia.h>