Commit bb3ea672 authored by Andre Heinecke's avatar Andre Heinecke

Fix wrong ifdef macro name in data.cpp, too

This happens if you add code to two libararies and only test
it in one..
parent c9e21162
......@@ -169,7 +169,7 @@ GpgME::Data::Type GpgME::Data::type() const
if (isNull()) {
return Invalid;
}
#ifdef HAVE_GPGME_IDENTIFY
#ifdef HAVE_GPGME_DATA_IDENTIFY
switch (gpgme_data_identify(d->data, 0)) {
case GPGME_DATA_TYPE_INVALID: return Invalid;
case GPGME_DATA_TYPE_UNKNOWN: return Unknown;
......@@ -181,7 +181,7 @@ GpgME::Data::Type GpgME::Data::type() const
case GPGME_DATA_TYPE_CMS_OTHER: return CMSOther;
case GPGME_DATA_TYPE_X509_CERT: return X509Cert;
case GPGME_DATA_TYPE_PKCS12: return PKCS12;
# ifdef HAVE_GPGME_IDENTIFY_GOOD
# ifdef HAVE_GPGME_DATA_IDENTIFY_GOOD
case GPGME_DATA_TYPE_PGP_ENCRYPTED: return PGPEncrypted;
case GPGME_DATA_TYPE_PGP_SIGNATURE: return PGPSignature;
# endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment