glib2 3.5.0 → 3.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/glib2/rbglib.c +64 -1
- data/ext/glib2/rbglib.h +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08fb0595254789a347a4b16d4ca8cdda38ffec0a50533173ce4c6ddefb1f42e2'
|
4
|
+
data.tar.gz: 2101aee918510ef73cd33955a150f3e42f22d575fbf34b26197a436372b1a262
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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-
|
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-
|
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
|
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.
|
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
|
+
date: 2022-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pkg-config
|