Ignore:
Timestamp:
07/30/09 00:00:32 (15 years ago)
Author:
r2d
Message:
  • autotool changes to support symbol visibility on MinGW.
  • mpcchap build must be enabled with --enable-mpcchap
  • mpcgain is built only if replaygain is installed
  • -fvisibility-hidden is added only for gcc4 on Linux
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpc/trunk/include/mpc/mpc_types.h

    r431 r445  
    127127#endif
    128128
    129 #ifdef __GNUC__
    130 # define MPC_API __attribute__ ((visibility("default")))
    131 #else
    132 # define MPC_API
     129/* DLL building support on win32 hosts */
     130#ifndef MPC_API
     131#   ifdef DLL_EXPORT      /* defined by libtool (if required) */
     132#       define MPC_API __declspec(dllexport)
     133#   endif
     134#   ifdef MPC_DLL_IMPORT  /* define if linking with this dll */
     135#       define MPC_API __declspec(dllimport)
     136#   endif
     137#   ifndef MPC_API     /* static linking or !_WIN32 */
     138#     if defined(__GNUC__) && (__GNUC__ >= 4)
     139#       define MPC_API __attribute__ ((visibility("default")))
     140#     else
     141#       define MPC_API
     142#     endif
     143#   endif
    133144#endif
    134145
Note: See TracChangeset for help on using the changeset viewer.