Changeset 1325


Ignore:
Timestamp:
Feb 5, 2020 4:31:13 AM (8 weeks ago)
Author:
stefan
Message:

adapt default config to declare dllexport only if DLL_EXPORT is defined

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/config_couenne_default.h

    r1313 r1325  
    1818
    1919#ifndef COUENNELIB_EXPORT
    20 #ifdef _WIN32
    21 /* assuming we link against a Bonmin DLL */
     20#if defined(_WIN32) && defined(DLL_EXPORT)
    2221#define COUENNELIB_EXPORT __declspec(dllimport)
    2322#else
  • trunk/src/config_default.h

    r1313 r1325  
    33#include "configall_system.h"
    44
    5 /* this needs to come before the include of config_ipopt_default.h */
     5/* this needs to come before the include of config_couenne_default.h */
    66#ifndef COUENNELIB_EXPORT
    7 #ifdef _WIN32
    8 /* assuming we build an Ipopt DLL */
     7#if defined(_WIN32) && defined(DLL_EXPORT)
    98#define COUENNELIB_EXPORT __declspec(dllexport)
    109#else
Note: See TracChangeset for help on using the changeset viewer.