2007-12-04 Mike Kestner <mkestner@novell.com>

* 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.

svn path=/trunk/gtk-sharp/; revision=90727
This commit is contained in:
Mike Kestner 2007-12-04 23:52:08 +00:00
parent e1fd1b014c
commit e26a98a763
4 changed files with 16 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2007-12-04 Mike Kestner <mkestner@novell.com>
* 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 <mark.probst@gmail.com>
* generator/SymbolTable.cs: Added "where" to the list of mangled

View File

@ -96,6 +96,10 @@ BUILD_GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
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)

View File

@ -64,5 +64,5 @@ EXTRA_DIST = \
$(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)

View File

@ -85,7 +85,11 @@ namespace GtkSharp.Generation {
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"));