# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1640009983 0 # Node ID a31c2e3a781e2412c9d31e7a4f40fb5d0ee457da # Parent 06b368d2e4f93c8b39862faef48ee654317baa16 GTK: Fix build issues due to the location of the DW_SIZE_AUTO definition. I tried to place it with the other internal control size constants, however they aren't used on some platforms like GTK... so had to move it to a section where it will always be included. diff -r 06b368d2e4f9 -r a31c2e3a781e dw.h --- a/dw.h Mon Dec 20 12:29:55 2021 +0000 +++ b/dw.h Mon Dec 20 14:19:43 2021 +0000 @@ -116,6 +116,9 @@ #define DW_GRAV_BOTTOM 2 #define DW_GRAV_OBSTACLES (1 << 10) +/* Control size constants */ +#define DW_SIZE_AUTO -1 + /* ensure we can build the Gtk port with MingW on Windows */ #if defined(DW_USE_GTK) && defined(__MINGW32__) # ifndef GDK_WINDOWING_WIN32 @@ -141,9 +144,6 @@ #define _DW_SIZE_STATIC 0 #define _DW_SIZE_EXPAND 1 -/* Control size constants */ -#define DW_SIZE_AUTO -1 - typedef struct _user_data { struct _user_data *next;