diff options
author | Giovanni Campagna <gcampagna@src.gnome.org> | 2015-04-13 23:00:00 -0700 |
---|---|---|
committer | Giovanni Campagna <gcampagna@src.gnome.org> | 2015-04-13 23:07:36 -0700 |
commit | 01003769ea7f70f7029f8da8e5949348434d839a (patch) | |
tree | 0133b1887e5134d16c416d4d06e2d40cbc0ef0a6 /libgweather/gweather-enums.h | |
parent | be5fb83a6b98f6a02d5f13bad14ec794d8aa0dad (diff) | |
download | libgweather-01003769ea7f70f7029f8da8e5949348434d839a.tar.gz |
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
Diffstat (limited to 'libgweather/gweather-enums.h')
-rw-r--r-- | libgweather/gweather-enums.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 |