mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
libgimpbase: avoid double definition of exported variables on Windows
... by qualifying them with "extern", in addition to "__declspec(dllexport)". Omitting "extern" happened to work in the past, but recent GCC versions require it.
This commit is contained in:
parent
ee79c7b294
commit
b2e223813b
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ G_BEGIN_DECLS
|
||||||
|
|
||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
# ifdef __GIMP_ENV_C__
|
# ifdef __GIMP_ENV_C__
|
||||||
# define GIMPVAR __declspec(dllexport)
|
# define GIMPVAR extern __declspec(dllexport)
|
||||||
# else /* !__GIMP_ENV_C__ */
|
# else /* !__GIMP_ENV_C__ */
|
||||||
# define GIMPVAR extern __declspec(dllimport)
|
# define GIMPVAR extern __declspec(dllimport)
|
||||||
# endif /* !__GIMP_ENV_C__ */
|
# endif /* !__GIMP_ENV_C__ */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue