Mercurial > dwindows
changeset 2743:a31c2e3a781e
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.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 20 Dec 2021 14:19:43 +0000 |
parents | 06b368d2e4f9 |
children | 608796a91527 |
files | dw.h |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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;