Commit 71ad43ee authored by Ahmad Samir's avatar Ahmad Samir
Browse files

Use cmakedefine01

This way we get a build time warning if the var isn't defined at all, e.g.
a missing check_include_files() CMake call.
parent 75ee205a
Pipeline #188930 passed with stage
in 1 minute and 42 seconds
#ifndef ARK_CONFIG_H
#define ARK_CONFIG_H
#cmakedefine LIBZIP_CANCELATION 1
#cmakedefine01 LIBZIP_CANCELATION
#endif
......@@ -163,7 +163,7 @@ bool LibzipPlugin::addFiles(const QVector<Archive::Entry*> &files, const Archive
// Register the callback function to get progress feedback and cancelation.
zip_register_progress_callback_with_state(archive.get(), 0.001, progressCallback, nullptr, this);
#ifdef LIBZIP_CANCELATION
#if LIBZIP_CANCELATION
zip_register_cancel_callback_with_state(archive.get(), cancelCallback, nullptr, this);
#endif
......@@ -936,7 +936,7 @@ bool LibzipPlugin::copyFiles(const QVector<Archive::Entry*> &files, Archive::Ent
// Register the callback function to get progress feedback and cancelation.
zip_register_progress_callback_with_state(archive.get(), 0.001, progressCallback, nullptr, this);
#ifdef LIBZIP_CANCELATION
#if LIBZIP_CANCELATION
zip_register_cancel_callback_with_state(archive.get(), cancelCallback, nullptr, this);
#endif
......
Supports Markdown
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