Author: mkestner
Date: 2007-12-04 18:52:08 -0500 (Tue, 04 Dec 2007)
New Revision: 90727
Modified:
trunk/gtk-sharp/ChangeLog
trunk/gtk-sharp/configure.in.in
trunk/gtk-sharp/generator/Makefile.am
trunk/gtk-sharp/generator/SymbolTable.cs
Log:
2007-12-04 Mike Kestner <[EMAIL PROTECTED]>
* configure.in.in: check for default off_t size
* generator/SymbolTable.cs: map off_t based on configure check.
* generator/Makefile.am: add OFF_T_FLAGS to compile.
Modified: trunk/gtk-sharp/ChangeLog
===================================================================
--- trunk/gtk-sharp/ChangeLog 2007-12-04 23:05:02 UTC (rev 90726)
+++ trunk/gtk-sharp/ChangeLog 2007-12-04 23:52:08 UTC (rev 90727)
@@ -1,3 +1,9 @@
+2007-12-04 Mike Kestner <[EMAIL PROTECTED]>
+
+ * configure.in.in: check for default off_t size
+ * generator/SymbolTable.cs: map off_t based on configure check.
+ * generator/Makefile.am: add OFF_T_FLAGS to compile.
+
2007-12-03 Mark Probst <[EMAIL PROTECTED]>
* generator/SymbolTable.cs: Added "where" to the list of mangled
Modified: trunk/gtk-sharp/configure.in.in
===================================================================
--- trunk/gtk-sharp/configure.in.in 2007-12-04 23:05:02 UTC (rev 90726)
+++ trunk/gtk-sharp/configure.in.in 2007-12-04 23:52:08 UTC (rev 90727)
@@ -96,6 +96,10 @@
AC_SUBST(BUILD_GTK_CFLAGS)
AC_SUBST(BUILD_GTK_LIBS)
+AC_CHECK_SIZEOF(off_t)
+OFF_T_FLAGS="-define:OFF_T_$ac_cv_sizeof_off_t"
+AC_SUBST(OFF_T_FLAGS)
+
MONO_REQUIRED_VERSION=1.0
PKG_CHECK_MODULES(MONO_DEPENDENCY, mono >= $MONO_REQUIRED_VERSION,
has_mono=true, has_mono=false)
Modified: trunk/gtk-sharp/generator/Makefile.am
===================================================================
--- trunk/gtk-sharp/generator/Makefile.am 2007-12-04 23:05:02 UTC (rev
90726)
+++ trunk/gtk-sharp/generator/Makefile.am 2007-12-04 23:52:08 UTC (rev
90727)
@@ -64,5 +64,5 @@
$(dist_sources)
gapi_codegen.exe: $(build_sources)
- $(CSC) /out:gapi_codegen.exe $(references) $(build_sources)
+ $(CSC) /out:gapi_codegen.exe $(OFF_T_FLAGS) $(references)
$(build_sources)
Modified: trunk/gtk-sharp/generator/SymbolTable.cs
===================================================================
--- trunk/gtk-sharp/generator/SymbolTable.cs 2007-12-04 23:05:02 UTC (rev
90726)
+++ trunk/gtk-sharp/generator/SymbolTable.cs 2007-12-04 23:52:08 UTC (rev
90727)
@@ -85,7 +85,11 @@
AddType (new LPUGen ("ulong"));
AddType (new LPUGen ("gulong"));
AddType (new LPUGen ("gsize"));
- AddType (new AliasGen ("off_t", "ssize_t"));
+#if OFF_T_8
+ AddType (new AliasGen ("off_t", "long"));
+#else
+ AddType (new LPGen ("off_t"));
+#endif
// string types
AddType (new ConstStringGen ("const-gchar"));
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches