diff options
author | Tor Lillqvist <tml@iki.fi> | 2001-11-21 22:01:50 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2001-11-21 22:01:50 +0000 |
commit | 241061620067326ab77713c12ac18047442654d0 (patch) | |
tree | 10ecf3f460ec6d50c509e393df28ced223f8bb7b /gobject | |
parent | 860905c445db25e6b1b6ccb3df555f0c1ada48b5 (diff) |
Set G_LOG_DOMAIN as in Makefile.am.
2001-11-21 Tor Lillqvist <tml@iki.fi>
* glib/makefile.mingw.in (DEFINES): Set G_LOG_DOMAIN as in
Makefile.am.
gobject:
2001-11-22 Tor Lillqvist <tml@iki.fi>
* makefile.mingw.in (DEFINES): Set G_LOG_DOMAIN as in Makefile.am.
* gparamspecs.h (GOBJECT_VAR): Can't use GLIB_VAR here, as that
makes sense only when building libglib. GOBJECT_VAR is similar for
libgobject.
* gobject.def: Add g_param_spec_types, remove
g_type_fundamental_branch_last.
Diffstat (limited to 'gobject')
-rw-r--r-- | gobject/ChangeLog | 11 | ||||
-rw-r--r-- | gobject/gobject.def | 2 | ||||
-rw-r--r-- | gobject/gparamspecs.h | 25 | ||||
-rw-r--r-- | gobject/makefile.mingw.in | 2 |
4 files changed, 37 insertions, 3 deletions
diff --git a/gobject/ChangeLog b/gobject/ChangeLog index 91a7ec332..43a7a66f2 100644 --- a/gobject/ChangeLog +++ b/gobject/ChangeLog @@ -1,3 +1,14 @@ +2001-11-22 Tor Lillqvist <tml@iki.fi> + + * makefile.mingw.in (DEFINES): Set G_LOG_DOMAIN as in Makefile.am. + + * gparamspecs.h (GOBJECT_VAR): Can't use GLIB_VAR here, as that + makes sense only when building libglib. GOBJECT_VAR is similar for + libgobject. + + * gobject.def: Add g_param_spec_types, remove + g_type_fundamental_branch_last. + Wed Nov 21 17:23:33 2001 Tim Janik <timj@gtk.org> * gparamspecs.[hc]: put newly created param spec types into a diff --git a/gobject/gobject.def b/gobject/gobject.def index 7284bcd31..5c8f5e02d 100644 --- a/gobject/gobject.def +++ b/gobject/gobject.def @@ -115,6 +115,7 @@ EXPORTS g_param_spec_sink g_param_spec_steal_qdata g_param_spec_string + g_param_spec_types g_param_spec_uchar g_param_spec_uint g_param_spec_uint64 @@ -186,7 +187,6 @@ EXPORTS g_type_depth g_type_free_instance g_type_from_name - g_type_fundamental_branch_last g_type_fundamental_last g_type_get_plugin g_type_get_qdata diff --git a/gobject/gparamspecs.h b/gobject/gparamspecs.h index 0b7584ffe..0a3bdf19f 100644 --- a/gobject/gparamspecs.h +++ b/gobject/gparamspecs.h @@ -384,7 +384,30 @@ GParamSpec* g_param_spec_object (const gchar *name, /* --- internal --- */ -GLIB_VAR GType *g_param_spec_types; +/* We prefix variable declarations so they can + * properly get exported in windows dlls. + */ +#ifndef GOBJECT_VAR +# ifdef G_PLATFORM_WIN32 +# ifdef GOBJECT_STATIC_COMPILATION +# define GOBJECT_VAR extern +# else /* !GOBJECT_STATIC_COMPILATION */ +# ifdef GOBJECT_COMPILATION +# ifdef DLL_EXPORT +# define GOBJECT_VAR __declspec(dllexport) +# else /* !DLL_EXPORT */ +# define GOBJECT_VAR extern +# endif /* !DLL_EXPORT */ +# else /* !GOBJECT_COMPILATION */ +# define GOBJECT_VAR extern __declspec(dllimport) +# endif /* !GOBJECT_COMPILATION */ +# endif /* !GOBJECT_STATIC_COMPILATION */ +# else /* !G_PLATFORM_WIN32 */ +# define GOBJECT_VAR extern +# endif /* !G_PLATFORM_WIN32 */ +#endif /* GOBJECT_VAR */ + +GOBJECT_VAR GType *g_param_spec_types; G_END_DECLS diff --git a/gobject/makefile.mingw.in b/gobject/makefile.mingw.in index ab6a40a88..6dc784ca2 100644 --- a/gobject/makefile.mingw.in +++ b/gobject/makefile.mingw.in @@ -12,7 +12,7 @@ include ../build/win32/make.mingw # Nothing much configurable below INCLUDES = -I .. -I ../glib -I . -DEFINES = -DHAVE_CONFIG_H -DGOBJECT_COMPILATION -DG_LOG_DOMAIN=g_log_domain_gruntime -DG_ENABLE_DEBUG +DEFINES = -DHAVE_CONFIG_H -DGOBJECT_COMPILATION -DG_LOG_DOMAIN=\"GLib-GObject\" -DG_ENABLE_DEBUG srcdir=. |