diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-01-17 12:39:57 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-01-17 12:39:57 (GMT) |
commit | 2e7b097afc15bc6b6fad5e18b7bd69d961e9b349 (patch) | |
tree | d34bf8f7c7375a04c84f0b609c70974f88d67865 /generic/tk.h | |
parent | 7351a944cfea2faa238bf630aa446bed104c01f2 (diff) | |
download | tk-2e7b097afc15bc6b6fad5e18b7bd69d961e9b349.zip tk-2e7b097afc15bc6b6fad5e18b7bd69d961e9b349.tar.gz tk-2e7b097afc15bc6b6fad5e18b7bd69d961e9b349.tar.bz2 |
tag Tk_FreeXId() as deprecated. Remove the function from the build if TK_NO_DEPRECATED is defined.
Diffstat (limited to 'generic/tk.h')
-rw-r--r-- | generic/tk.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tk.h b/generic/tk.h index 9403f31..658b11e 100644 --- a/generic/tk.h +++ b/generic/tk.h @@ -414,7 +414,9 @@ typedef enum { #define TK_CONFIG_COLOR_ONLY (1 << 1) #define TK_CONFIG_MONO_ONLY (1 << 2) #define TK_CONFIG_DONT_SET_DEFAULT (1 << 3) -#define TK_CONFIG_OPTION_SPECIFIED (1 << 4) +#if !defined(TK_NO_DEPRECATED) || defined(BUILD_tk) +# define TK_CONFIG_OPTION_SPECIFIED (1 << 4) +#endif #define TK_CONFIG_USER_BIT 0x100 #endif /* __NO_OLD_CONFIG */ |