GNOME Bugzilla – Bug 701251
Avoid build warnings for the Win32 GDK backend
Last modified: 2013-05-31 04:07:26 UTC
Created attachment 245614 [details] [review] Include config.h first Hi, There seems to be some build warnings for GDK-Win32 for some source files, due to the redefinition of _GDK_EXTERN as config.h is not included before the GDK headers in these sources, gdkkeys-win32.c and gdktestutils-win32.c. I have attached a simple patch to remedy these issues. With blessings, thank you!
Review of attachment 245614 [details] [review]: Please push, with that comment removed. Thanks ::: gdk/win32/gdktestutils-win32.c @@ +16,3 @@ * License along with this library. If not, see <http://www.gnu.org/licenses/>. */ +#include "config.h" /* for _GDK_EXTERN */ I don't like these kinds of comments very much. And in particular for config.h, there's no need - it is a rule in gtk that config.h must always be included, and be included first.
Review of attachment 245614 [details] [review]: Hello Matthias, The patch was pushed as 850d0e70 with your comments incorporated. Thanks for your time and review. I will close this bug shortly. With blessings.