Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change glib DllImports to libglib-2.0-0.dll

The DllImport statement were referring to the glib
library as libglib-2.0.dll, without the -0, whereas the .config file
has the -0. libglib-2.0-0.dll is the right filename for glib on Windows
and is used by gtk-sharp, so we use it too.
  • Loading branch information...
commit 1a1adb8ec4149b4a0a8e55db0e3baa172cbd2c3f 1 parent 276a699
@bl8 bl8 authored
Showing with 6 additions and 6 deletions.
  1. +4 −4 GKeyFile/GKeyFile.custom
  2. +2 −2 GKeyFile/gkeyfile-api.raw
View
8 GKeyFile/GKeyFile.custom
@@ -66,7 +66,7 @@
return GetStringList (group_name, key, out length);
}
- [DllImport("libglib-2.0.dll")]
+ [DllImport("libglib-2.0-0.dll")]
static extern unsafe IntPtr g_key_file_get_boolean_list(IntPtr raw, IntPtr group_name, IntPtr key, out UIntPtr length, out IntPtr error);
public unsafe bool[] GetBooleanList(string group_name, string key) {
@@ -88,7 +88,7 @@
return ret;
}
- [DllImport("libglib-2.0.dll")]
+ [DllImport("libglib-2.0-0.dll")]
static extern unsafe IntPtr g_key_file_get_integer_list(IntPtr raw, IntPtr group_name, IntPtr key, out UIntPtr length, out IntPtr error);
public unsafe int[] GetIntegerList(string group_name, string key) {
@@ -107,7 +107,7 @@
return ret;
}
- [DllImport("libglib-2.0.dll")]
+ [DllImport("libglib-2.0-0.dll")]
static extern unsafe IntPtr g_key_file_get_double_list(IntPtr raw, IntPtr group_name, IntPtr key, out UIntPtr length, out IntPtr error);
public unsafe double[] GetDoubleList(string group_name, string key) {
@@ -126,7 +126,7 @@
return ret;
}
- [DllImport("libglib-2.0.dll")]
+ [DllImport("libglib-2.0-0.dll")]
static extern void g_key_file_set_list_separator(IntPtr raw, byte separator);
public char ListSeparator {
View
4 GKeyFile/gkeyfile-api.raw
@@ -6,7 +6,7 @@
Please DO NOT MODIFY THIS FILE, modify .metadata files instead.
-->
- <namespace name="KeyFile" library="libglib-2.0.dll">
+ <namespace name="KeyFile" library="libglib-2.0-0.dll">
<enum name="Error" cname="GKeyFileError" type="enum">
<member cname="G_KEY_FILE_ERROR_UNKNOWN_ENCODING" name="UnknownEncoding" />
<member cname="G_KEY_FILE_ERROR_PARSE" name="Parse" />
@@ -340,4 +340,4 @@
</method>
</struct>
</namespace>
-</api>
+</api>
Please sign in to comment.
Something went wrong with that request. Please try again.