1
1
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:
Nils Philippsen
2025-01-29 12:51:53 +01:00
committed by Jehan
parent 16fe79a45f
commit 85bdad2b2c
2 changed files with 7 additions and 12 deletions

View File

@@ -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;
}

View File

@@ -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;