mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 23:58:54 +02:00
gtypes.h Move GLIB_VAR definition from gutils.h to gtypes.h
2001-02-10 Tor Lillqvist <tml@iki.fi> * gtypes.h * gutils.h: Move GLIB_VAR definition from gutils.h to gtypes.h * glib.def * gmem.h: Mark glib_mem_profiler_table for export.
This commit is contained in:
committed by
Tor Lillqvist
parent
bf8cdc4655
commit
aed994f714
13
gtypes.h
13
gtypes.h
@@ -324,5 +324,18 @@ struct _GTimeVal
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
/* We prefix variable declarations so they can
|
||||
* properly get exported in windows dlls.
|
||||
*/
|
||||
#ifdef G_OS_WIN32
|
||||
# ifdef GLIB_COMPILATION
|
||||
# define GLIB_VAR __declspec(dllexport)
|
||||
# else /* !GLIB_COMPILATION */
|
||||
# define GLIB_VAR extern __declspec(dllimport)
|
||||
# endif /* !GLIB_COMPILATION */
|
||||
#else /* !G_OS_WIN32 */
|
||||
# define GLIB_VAR extern
|
||||
#endif /* !G_OS_WIN32 */
|
||||
|
||||
#endif /* __G_TYPES_H__ */
|
||||
|
||||
|
Reference in New Issue
Block a user