Avoid type names and keywords
This fixes various errors when compiling with current toolchains and/or -std=c23. Signed-off-by: Nils Philippsen <nils@tiptoe.de>
This commit is contained in:
parent
16fe79a45f
commit
85bdad2b2c
2 changed files with 7 additions and 12 deletions
|
|
@ -522,10 +522,10 @@ gimp_config_serialize_value (const GValue *value,
|
|||
|
||||
if (G_VALUE_HOLDS_BOOLEAN (value))
|
||||
{
|
||||
gboolean bool;
|
||||
gboolean boolean;
|
||||
|
||||
bool = g_value_get_boolean (value);
|
||||
g_string_append (str, bool ? "yes" : "no");
|
||||
boolean = g_value_get_boolean (value);
|
||||
g_string_append (str, boolean ? "yes" : "no");
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,15 +19,10 @@
|
|||
#ifndef TYPES_H
|
||||
#define TYPES_H
|
||||
|
||||
/* Booleans. */
|
||||
typedef enum { false = 0, true = 1 } boolean;
|
||||
|
||||
/* The X11 library defines `FALSE' and `TRUE', and so we only want to
|
||||
define them if necessary. */
|
||||
#ifndef FALSE
|
||||
#define FALSE false
|
||||
#define TRUE true
|
||||
#endif /* FALSE */
|
||||
/* Cope with C23 */
|
||||
typedef int boolean;
|
||||
#define false FALSE
|
||||
#define true TRUE
|
||||
|
||||
/* The usual null-terminated string. */
|
||||
typedef char *string;
|
||||
|
|
|
|||
Loading…
Reference in a new issue