Commit 225ae0e2 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 10ca00cd
Pipeline #188794 passed with stage
in 2 minutes and 49 seconds
......@@ -7,6 +7,6 @@
#ifndef CONFIG_WEATHER_H
#define CONFIG_WEATHER_H
#cmakedefine HAVE_KHOLIDAYS
#cmakedefine01 HAVE_KHOLIDAYS
#endif
......@@ -8,7 +8,7 @@
#include "weatherforecast.h"
#include "weathertile.h"
#ifdef HAVE_KHOLIDAYS
#if HAVE_KHOLIDAYS
#include <KHolidays/SunRiseSet>
#endif
......@@ -124,7 +124,7 @@ static const icon_map_t icon_map[] = {
bool WeatherForecastPrivate::useDayTimeIcon() const
{
#ifdef HAVE_KHOLIDAYS
#if HAVE_KHOLIDAYS
if (m_range >= 24) {
return true;
}
......
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