/[svn]/gigedit/trunk/src/gigedit/compat.h
ViewVC logotype

Diff of /gigedit/trunk/src/gigedit/compat.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3999 by schoenebeck, Sun Feb 21 14:41:48 2021 UTC revision 4000 by schoenebeck, Sun Nov 14 19:33:03 2021 UTC
# Line 51  Line 51 
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
# Line 190  typedef Gtk::Action Action; Line 190  typedef Gtk::Action Action;
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

Legend:
Removed from v.3999  
changed lines
  Added in v.4000

  ViewVC Help
Powered by ViewVC