[glib/unicode-typo-fix] Fix the build




commit f9663acf11aece59838a6baf8a0a1c7787bbb2d8
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jul 28 13:45:20 2021 -0400

    Fix the build
    
    Try to make this build without running into deprecation
    warnings.

 glib/gunicode.h                   | 4 ++--
 gobject/glib-enumtypes.c.template | 9 +++++++++
 2 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/glib/gunicode.h b/glib/gunicode.h
index b9e8d6910..58128864a 100644
--- a/glib/gunicode.h
+++ b/glib/gunicode.h
@@ -248,8 +248,8 @@ typedef enum
   G_UNICODE_BREAK_HANGUL_T_JAMO,
   G_UNICODE_BREAK_HANGUL_LV_SYLLABLE,
   G_UNICODE_BREAK_HANGUL_LVT_SYLLABLE,
-  G_UNICODE_BREAK_CLOSE_PARANTHESIS 
GLIB_DEPRECATED_ENUMERATOR_IN_2_70_FOR(G_UNICODE_BREAK_CLOSE_PARENTHESIS),
-  G_UNICODE_BREAK_CLOSE_PARENTHESIS GLIB_AVAILABLE_ENUMERATOR_IN_2_70 = G_UNICODE_BREAK_CLOSE_PARANTHESIS,
+  G_UNICODE_BREAK_CLOSE_PARENTHESIS GLIB_AVAILABLE_ENUMERATOR_IN_2_70,
+  G_UNICODE_BREAK_CLOSE_PARANTHESIS 
GLIB_DEPRECATED_ENUMERATOR_IN_2_70_FOR(G_UNICODE_BREAK_CLOSE_PARENTHESIS) = G_UNICODE_BREAK_CLOSE_PARENTHESIS,
   G_UNICODE_BREAK_CONDITIONAL_JAPANESE_STARTER,
   G_UNICODE_BREAK_HEBREW_LETTER,
   G_UNICODE_BREAK_REGIONAL_INDICATOR,
diff --git a/gobject/glib-enumtypes.c.template b/gobject/glib-enumtypes.c.template
index 1800ca8af..42f9c341f 100644
--- a/gobject/glib-enumtypes.c.template
+++ b/gobject/glib-enumtypes.c.template
@@ -3,10 +3,19 @@
 #include "glib-enumtypes.h"
 #include <glib-object.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 /*** END file-header ***/
 
+/*** BEGIN file-tail ***/
+
+G_GNUC_END_IGNORE_DEPRECATIONS
+
+/*** END file-tail ***/
+
 /*** BEGIN file-production ***/
 /* enumerations from "@filename@" */
+
 /*** END file-production ***/
 
 /*** BEGIN value-header ***/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]