Changeset 3878


Ignore:
Timestamp:
Oct 27, 2018 10:54:29 AM (11 months ago)
Author:
stefan
Message:

add define for XYZ_EXPORT

  • define to declspec(dllimport) when building a DLL
  • expect the project to redefine this to declspec(dllexport) when building
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coin.m4

    r3876 r3878  
    19211921      fi
    19221922
     1923      # setup XYZ_EXPORT symbol for library users
     1924      libexport_attribute=
     1925      if test "$enable_shared" = yes ; then
     1926        # or do we also need this for GCC on Windows?
     1927        case $CC in cl* | */cl* | icl* | */icl* )
     1928          libexport_attribute="__declspec(dllimport)"
     1929        esac
     1930      fi
     1931      AC_DEFINE_UNQUOTED(m4_toupper(myvar)_EXPORT, [$libexport_attribute], [Library Visibility Attribute])
     1932
    19231933# Define BUILDTOOLS_DEBUG to enable debugging output
    19241934
Note: See TracChangeset for help on using the changeset viewer.