glib2 3.5.0 → 3.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 135835c6036937932bed291b322562c6df79be9a0ef07610b9b01627fa9449d4
4
- data.tar.gz: 0a07086fc4c87b2311fb608d2a27eedf3ceb1d9a24c0abc0caa061cfb7eacf1a
3
+ metadata.gz: '08fb0595254789a347a4b16d4ca8cdda38ffec0a50533173ce4c6ddefb1f42e2'
4
+ data.tar.gz: 2101aee918510ef73cd33955a150f3e42f22d575fbf34b26197a436372b1a262
5
5
  SHA512:
6
- metadata.gz: 4498dc7d5f612602a79519285dc5e026f9f8abd0d74754317ad451399d780749066b38872317edd2ddb08f1b3ecca48ece9b9264ec61c52241d05c6f572c62d2
7
- data.tar.gz: 3b240df85066aaea0ea91dd0f91b05bef11d74906c3c733549d4aa833fb56c88df88baffd9e20f08339e8371de4d7fbaf55a3b1e75a68a563c29dddf1a1035c5
6
+ metadata.gz: 753e8d436bb66c430f1d6a6d7787838099eac3f166988761e1cdbfe37f1bf319d6ecaab813ffc3302670be1421763036ebad78e9e70160920cd6872070bd80b7
7
+ data.tar.gz: 8d86223f738fc358c40d61491da10946df888cafad626174b2cbae3fb294090099dcd742c6c01b84490dbdbebcc282ba4380f2a49c5e8706d1f5fbb26168ea89
data/ext/glib2/rbglib.c CHANGED
@@ -1,6 +1,6 @@
1
1
  /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
2
  /*
3
- * Copyright (C) 2011-2019 Ruby-GNOME Project Team
3
+ * Copyright (C) 2011-2022 Ruby-GNOME Project Team
4
4
  * Copyright (C) 2002,2003 Masahiro Sakai
5
5
  *
6
6
  * This library is free software; you can redistribute it and/or
@@ -1067,6 +1067,69 @@ rg_s_os_unix_p(G_GNUC_UNUSED VALUE self)
1067
1067
  #endif
1068
1068
  }
1069
1069
 
1070
+ #ifdef _WIN32
1071
+ /* Workaround: I don't know why but DllMain() is required with
1072
+ * mingw-w64-x86_64-gettext-0.21-1 or later. We don't need DllMain()
1073
+ * with mingw-w64-x86_64-gettext-0.19.8.1-10 or earlier.
1074
+ *
1075
+ * If we don't define DllMain() with mingw-w64-x86_64-gettext-0.21-1
1076
+ * or later, we got "The specified procedure could not be found" error
1077
+ * when "require 'glib2'" is evaluated.
1078
+ *
1079
+ * Notes:
1080
+ *
1081
+ * * This isn't happen when we build glib2 gem (gem install glib2)
1082
+ * with mingw-w64-x86_64-gettext-0.19.8.1-10 or earlier and update
1083
+ * mingw-w64-x86_64-gettext to 0.21-1 or later. (DllMain() isn't
1084
+ * required.) It seems that this is a link time
1085
+ * problem. msys64\mingw64\lib\libintl.dll.a may be related. It
1086
+ * may require DllMain() with mingw-w64-x86_64-gettext-0.21-1 or
1087
+ * later.
1088
+ *
1089
+ * * libintl.dll is linked with empty source and
1090
+ * mingw-w64-x86_64-gettext-0.21-1 or later:
1091
+ *
1092
+ * void hello(void) {}
1093
+ *
1094
+ * cc -shared empty.c -o empty.dll -lintl
1095
+ *
1096
+ * libintl.dll is NOT linked with empty source and
1097
+ * mingw-w64-x86_64-gettext-0.19.8-1-10 or earlier.
1098
+ *
1099
+ * * This isn't happen without Ruby. (At least I couldn't reproduce
1100
+ * this without Ruby.)
1101
+ *
1102
+ * The following program isn't failed:
1103
+ *
1104
+ * #include <stdio.h>
1105
+ * #include <windows.h>
1106
+ *
1107
+ * int
1108
+ * main(void) {
1109
+ * HMODULE b = LoadLibrary("empty.dll");
1110
+ * if (b) {
1111
+ * printf("loaded\n");
1112
+ * FreeLibrary(b);
1113
+ * } else {
1114
+ * printf("failed to load: %d\n", GetLastError());
1115
+ * }
1116
+ * return 0;
1117
+ * }
1118
+ */
1119
+ BOOL WINAPI
1120
+ DllMain(G_GNUC_UNUSED HINSTANCE hinstDLL,
1121
+ G_GNUC_UNUSED DWORD fdwReason,
1122
+ G_GNUC_UNUSED LPVOID lpvReserved);
1123
+
1124
+ BOOL WINAPI
1125
+ DllMain(G_GNUC_UNUSED HINSTANCE hinstDLL,
1126
+ G_GNUC_UNUSED DWORD fdwReason,
1127
+ G_GNUC_UNUSED LPVOID lpvReserved)
1128
+ {
1129
+ return TRUE;
1130
+ }
1131
+ #endif
1132
+
1070
1133
  extern void Init_glib2(void);
1071
1134
 
1072
1135
  void
data/ext/glib2/rbglib.h CHANGED
@@ -1,6 +1,6 @@
1
1
  /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
2
  /*
3
- * Copyright (C) 2002-2021 Ruby-GNOME Project Team
3
+ * Copyright (C) 2002-2022 Ruby-GNOME Project Team
4
4
  * Copyright (C) 2002,2003 Masahiro Sakai
5
5
  *
6
6
  * This library is free software; you can redistribute it and/or
@@ -33,7 +33,7 @@ G_BEGIN_DECLS
33
33
 
34
34
  #define RBGLIB_MAJOR_VERSION 3
35
35
  #define RBGLIB_MINOR_VERSION 5
36
- #define RBGLIB_MICRO_VERSION 0
36
+ #define RBGLIB_MICRO_VERSION 1
37
37
 
38
38
  #ifndef RB_ZALLOC
39
39
  # ifdef ZALLOC
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glib2
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.0
4
+ version: 3.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Ruby-GNOME Project Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-11 00:00:00.000000000 Z
11
+ date: 2022-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pkg-config