mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-03 04:09:20 +02:00
updated
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:
@@ -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
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user