mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-10-06 01:12:40 +02:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user