[glibmm] Gio: Remove enum ErrorEnum



commit 1e6bca5a6b31afe8e40e3a417a8a3143d9e32415
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date:   Fri Apr 14 14:54:39 2017 +0200

    Gio: Remove enum ErrorEnum
    
    * gio/src/enums.hg: GIOErrorEnum was wrapped twice, with _WRAP_ENUM in
    gio/src/enums.hg, and with _WRAP_GERROR in gio/src/error.hg. Remove the
    wrapping with _WRAP_ENUM. Uses of Gio::ErrorEnum, if any, can be replaced
    by Gio::Error::Code.

 gio/src/enums.hg |   17 -----------------
 1 files changed, 0 insertions(+), 17 deletions(-)
---
diff --git a/gio/src/enums.hg b/gio/src/enums.hg
index 3698a77..7cbe7f5 100644
--- a/gio/src/enums.hg
+++ b/gio/src/enums.hg
@@ -18,16 +18,6 @@
 #include <gio/gio.h>
 #include <glibmm/value.h>
 
-// There have been issues with other libraries defining HOST_NOT_FOUND (e.g.
-// netdb.h).  As a workaround, we added the alternate name HOST_WAS_NOT_FOUND.
-// Portable code should not use HOST_NOT_FOUND.  Undefining it here (and
-// restoring it below) will allow programs to compile even if they include
-// netdb.h.  See Bug #529496
-#ifdef HOST_NOT_FOUND
-#define GIOMM_SAVED_HOST_NOT_FOUND HOST_NOT_FOUND
-#undef HOST_NOT_FOUND
-#endif // HOST_NOT_FOUND
-
 _DEFS(giomm,gio)
 
 namespace Gio
@@ -36,15 +26,8 @@ namespace Gio
 // BIG_ENDIAN and LITTLE_ENDIAN are defined as preprocessor macros somewhere.
 _WRAP_ENUM(DataStreamByteOrder, GDataStreamByteOrder, NO_GTYPE, s#ENDIAN$#ENDIAN_ORDER#)
 _WRAP_ENUM(DataStreamNewlineType, GDataStreamNewlineType, NO_GTYPE)
-_WRAP_ENUM(ErrorEnum, GIOErrorEnum, NO_GTYPE)
 _WRAP_ENUM(SocketFamily, GSocketFamily)
 _WRAP_ENUM(TlsAuthenticationMode, GTlsAuthenticationMode)
 _WRAP_ENUM(TlsCertificateFlags, GTlsCertificateFlags)
 
 } // namespace Gio
-
-#ifdef GIOMM_SAVED_HOST_NOT_FOUND
-// restore the previously-defined HOST_NOT_FOUND macro
-#define HOST_NOT_FOUND GIOMM_SAVED_HOST_NOT_FOUND
-#undef GIOMM_SAVED_HOST_NOT_FOUND
-#endif // GIOMM_SAVED_HOST_NOT_FOUND


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