File tree 4 files changed +6
-8
lines changed
4 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 55
55
#endif
56
56
57
57
#ifndef CBCSOLVERLIB_EXPORT
58
- # ifdef _WIN32
58
+ # if defined( _WIN32 ) && defined( DLL_EXPORT )
59
59
# ifdef CBCSOLVER_BUILD
60
60
# define CBCSOLVERLIB_EXPORT __declspec(dllexport)
61
61
# else
69
69
70
70
#endif /* HAVE_CONFIG_H */
71
71
72
- #endif /*__CBCCONFIG_H__ */
72
+ #endif /*__CBCSOLVERCONFIG_H__ */
73
73
74
74
/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
75
75
*/
Original file line number Diff line number Diff line change 49
49
#else /* HAVE_CONFIG_H */
50
50
51
51
#ifndef OSICBCLIB_EXPORT
52
- # ifdef _WIN32
52
+ # if defined( _WIN32 ) && defined( DLL_EXPORT )
53
53
# ifdef OSILIB_BUILD
54
54
# define OSICBCLIB_EXPORT __declspec(dllexport)
55
55
# else
Original file line number Diff line number Diff line change 17
17
#define CBC_VERSION_RELEASE 9999
18
18
19
19
#ifndef CBCLIB_EXPORT
20
- #ifdef _WIN32
21
- /* assuming we link against a CoinUtils DLL */
20
+ #if defined(_WIN32 ) && defined(DLL_EXPORT )
22
21
#define CBCLIB_EXPORT __declspec(dllimport)
23
22
#else
24
23
#define CBCLIB_EXPORT
Original file line number Diff line number Diff line change 2
2
/* include the COIN-OR-wide system specific configure header */
3
3
#include "configall_system.h"
4
4
5
- /* this needs to come before the include of config_coinutils_default .h */
5
+ /* this needs to come before the include of config_cbc_default .h */
6
6
#ifndef CBCLIB_EXPORT
7
- #ifdef _WIN32
8
- /* assuming we build a CoinUtils DLL */
7
+ #if defined(_WIN32 ) && defined(DLL_EXPORT )
9
8
#define CBCLIB_EXPORT __declspec(dllexport)
10
9
#else
11
10
#define CBCLIB_EXPORT
You can’t perform that action at this time.
0 commit comments