51 |
#endif |
#endif |
52 |
|
|
53 |
#ifndef HAS_PANGOMM_CPP11_ENUMS |
#ifndef HAS_PANGOMM_CPP11_ENUMS |
54 |
// new enums introduced in unstable pangomm 2.41.3, but not in stable 2.42 |
// new enums introduced in unstable pangomm 2.41.3 |
55 |
# if PANGOMM_MAJOR_VERSION > 2 || (PANGOMM_MAJOR_VERSION == 2 && ((PANGOMM_MINOR_VERSION == 41 && PANGOMM_MICRO_VERSION >= 3) || PANGOMM_MINOR_VERSION > 42)) |
# if PANGOMM_MAJOR_VERSION > 2 || (PANGOMM_MAJOR_VERSION == 2 && ((PANGOMM_MINOR_VERSION == 41 && PANGOMM_MICRO_VERSION >= 3) || PANGOMM_MINOR_VERSION > 41)) |
56 |
# define HAS_PANGOMM_CPP11_ENUMS 1 |
# define HAS_PANGOMM_CPP11_ENUMS 1 |
57 |
# else |
# else |
58 |
# define HAS_PANGOMM_CPP11_ENUMS 0 |
# define HAS_PANGOMM_CPP11_ENUMS 0 |
190 |
|
|
191 |
#if HAS_PANGOMM_CPP11_ENUMS |
#if HAS_PANGOMM_CPP11_ENUMS |
192 |
# include <pangomm/layout.h> |
# include <pangomm/layout.h> |
193 |
|
// the following backward compatibility workaround seems to be obsolete since |
194 |
|
// pangomm 2.42 (and could then cause compilation errors due to redecleration) |
195 |
|
# if PANGOMM_MAJOR_VERSION == 2 && PANGOMM_MINOR_VERSION < 42 |
196 |
namespace Pango { |
namespace Pango { |
197 |
const Alignment ALIGN_LEFT = Alignment::LEFT; |
const Alignment ALIGN_LEFT = Alignment::LEFT; |
198 |
const Alignment ALIGN_CENTER = Alignment::CENTER; |
const Alignment ALIGN_CENTER = Alignment::CENTER; |
199 |
const Alignment ALIGN_RIGHT = Alignment::RIGHT; |
const Alignment ALIGN_RIGHT = Alignment::RIGHT; |
200 |
} |
} |
201 |
|
# endif |
202 |
#endif // HAS_PANGOMM_CPP11_ENUMS |
#endif // HAS_PANGOMM_CPP11_ENUMS |
203 |
|
|
204 |
#if HAS_GTKMM_CPP11_ENUMS |
#if HAS_GTKMM_CPP11_ENUMS |