From 01003769ea7f70f7029f8da8e5949348434d839a Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Mon, 13 Apr 2015 23:00:00 -0700 Subject: Consolidate define checks and forbid single includes Given that we're breaking API for apps that use single includes (by renaming the includes), forbid them explicitly and consolidate the unstable define check in gweather.h --- libgweather/gweather-enums.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libgweather/gweather-enums.h') diff --git a/libgweather/gweather-enums.h b/libgweather/gweather-enums.h index 3ce1213..b3c2b4b 100644 --- a/libgweather/gweather-enums.h +++ b/libgweather/gweather-enums.h @@ -21,6 +21,10 @@ #ifndef __GWEATHER_ENUMS_H_ #define __GWEATHER_ENUMS_H_ +#if !(defined(IN_GWEATHER_H) || defined(GWEATHER_COMPILATION)) +#error "gweather-enums.h must not be included individually, include gweather.h instead" +#endif + /** * GWeatherTemperatureUnit: * @GWEATHER_TEMP_UNIT_INVALID: invalid unit -- cgit v1.2.1