2004-08-06  Hans Breuer  <hans@breuer.org>

	* glib/makefile.msc.in glib/glib.def : updated

	* glib/gutils.c : avoid 'inconsitent dll linkage' by not
	defining extern char** environ with msvc
This commit is contained in:
Hans Breuer
2004-08-06 18:22:46 +00:00
committed by Hans Breuer
parent b324ed6804
commit 838a02bc3f
8 changed files with 62 additions and 0 deletions

View File

@@ -821,7 +821,13 @@ g_setenv (const gchar *variable,
/* According to the Single Unix Specification, environ is not in
* any system header, although unistd.h often declares it.
*/
# ifndef _MSC_VER
/*
* Win32 - at least msvc headers declare it so let's avoid
* warning C4273: '__p__environ' : inconsistent dll linkage. dllexport assumed.
*/
extern char **environ;
# endif
#endif
/**