summaryrefslogtreecommitdiffstats
path: root/mono
diff options
context:
space:
mode:
Diffstat (limited to 'mono')
-rw-r--r--mono/Arguments.cs2
-rw-r--r--mono/Makefile.am4
2 files changed, 4 insertions, 2 deletions
diff --git a/mono/Arguments.cs b/mono/Arguments.cs
index d78fbff2..b68ed5a3 100644
--- a/mono/Arguments.cs
+++ b/mono/Arguments.cs
@@ -165,6 +165,8 @@ namespace DBus
if (type.IsArray)
constructorType = typeof (System.Array);
+ else if (type.IsEnum)
+ constructorType = Enum.GetUnderlyingType (type);
else
constructorType = type.UnderlyingSystemType;
diff --git a/mono/Makefile.am b/mono/Makefile.am
index 12c9faa5..0b52050b 100644
--- a/mono/Makefile.am
+++ b/mono/Makefile.am
@@ -51,10 +51,10 @@ DISTCLEANFILES=AssemblyInfo.cs $(ASSEMBLY).config $(ASSEMBLY)
all-am: $(TARGET)
dbus-sharp.dll: $(DBUS_SHARP_FILES)
- $(CSC) --unsafe --target library -o dbus-sharp.dll $(DBUS_SHARP_FILES) AssemblyInfo.cs
+ $(CSC) --debug --unsafe --target library -o dbus-sharp.dll $(DBUS_SHARP_FILES) AssemblyInfo.cs
test-dbus-sharp.exe: $(TEST_DBUS_SHARP_FILES)
- $(CSC) --unsafe --target exe -L . -r dbus-sharp.dll -pkg:gtk-sharp -o test-dbus-sharp.exe $(TEST_DBUS_SHARP_FILES)
+ $(CSC) --debug --unsafe --target exe -L . -r dbus-sharp.dll -pkg:gtk-sharp -o test-dbus-sharp.exe $(TEST_DBUS_SHARP_FILES)
clean:
rm -f $(TARGET) $(NOINST_EXES)