mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-22 21:27:22 +01:00
Fix an issue where 'ytkmm' wouldn't run properly if built with MSVC
This commit is contained in:
parent
046623df59
commit
8d7fc15917
1 changed files with 13 additions and 2 deletions
|
|
@ -12,10 +12,21 @@
|
|||
/* Defined when the --enable-maemo-extensions configure argument was given */
|
||||
/* #undef GTKMM_MAEMO_EXTENSIONS_ENABLED */
|
||||
|
||||
/* Define when building gtkmm as a static library */
|
||||
/* #undef GTKMM_STATIC_LIB */
|
||||
|
||||
/* Enable DLL-specific stuff only when not building a static library */
|
||||
# if (!defined(GTKMM_STATIC_LIB) && defined(_WIN32) && !defined(__CYGWIN__) && !defined(COMPILER_MINGW))
|
||||
# if !defined(GTKMM_DLL)
|
||||
# define GTKMM_DLL 1
|
||||
# endif
|
||||
# endif
|
||||
|
||||
#ifdef GTKMM_DLL
|
||||
# if defined(GTKMM_BUILD) && defined(_WINDLL)
|
||||
/* Do not dllexport as it is handled by gendef on MSVC */
|
||||
# define GTKMM_API
|
||||
/* GTKMM_API was previously undefined here. It was getting handled */
|
||||
/* by 'gendef' on MSVC but 'gendef' stopped working a long time ago */
|
||||
# define GTKMM_API __declspec(dllexport)
|
||||
# elif !defined(GTKMM_BUILD)
|
||||
# define GTKMM_API __declspec(dllimport)
|
||||
# else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue