walt <[EMAIL PROTECTED]> posted [EMAIL PROTECTED], excerpted below, on Sat, 29 Mar 2008 15:40:39 -0700:
> In this particular case I agree with your idea to include glib.h -- > that's what that header file is for and it would have prevented this > particular compile error. The problem there, as mentioned elsewhere (maybe on the bug not the thread?) is that glib 2.12 and below is different again, and doesn't include glib.h. So including gmessages.h works up thru 2.14 but not for 2.16, including glib.h works for 2.14 and 2.16 but not 2.12 and previous, and including gtestutils.h works for 2.16. None of the above work for the entire range from 2.4, the apparent previous minimum required (according to Gentoo's dependencies anyway, I don't know of anyone actually using that far back), thru 2.16 and potentially forward. Thus Dan's latest suggestion, using #if conditionals, but splitting all the glib logic out into its own glib-compat.h file for ease of maintenance, and just depending on it elsewhere in pan. -- Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman _______________________________________________ Pan-users mailing list Pan-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/pan-users