--- gigedit/trunk/src/gigedit/compat.h 2019/01/31 19:42:50 3459 +++ gigedit/trunk/src/gigedit/compat.h 2019/02/02 07:48:50 3460 @@ -1,5 +1,5 @@ /* -*- c++ -*- - * Copyright (C) 2011-2017 Andreas Persson + * Copyright (C) 2011-2019 Andreas Persson * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -50,8 +50,9 @@ # include #endif -#ifndef HAS_PANGOMM_CPP11_ENUMS // pangomm > 2.40 : <- just a "guess" -# if PANGOMM_MAJOR_VERSION > 2 || (PANGOMM_MAJOR_VERSION == 2 && PANGOMM_MINOR_VERSION > 40) +#ifndef HAS_PANGOMM_CPP11_ENUMS + // new enums introduced in unstable pangomm 2.41.3, but not in stable 2.42 +# if PANGOMM_MAJOR_VERSION > 2 || (PANGOMM_MAJOR_VERSION == 2 && ((PANGOMM_MINOR_VERSION == 41 && PANGOMM_MICRO_VERSION >= 3) || PANGOMM_MINOR_VERSION > 42)) # define HAS_PANGOMM_CPP11_ENUMS 1 # else # define HAS_PANGOMM_CPP11_ENUMS 0