~jan-kneschke/mysql-proxy/packet-tracking-assertions

« back to all changes in this revision

Viewing changes to src/chassis-exports.h

  • Committer: Kay Roepke
  • Date: 2009-09-02 14:04:24 UTC
  • Revision ID: kay@sun.com-20090902140424-j795532tpi1y06lt
Fix linking errors on Win32:
 * chassis-timing was missing CHASSIS_API
 * evutil_socketpair was not exported

Suppress superfluous warnings from MSVC and fix a couple of valid ones (unused variables etc).

Add third path to the dllexport macros, to be used in testcases which are statically linked (fixes linker warnings).
Fixes PR-237

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#if defined(mysql_chassis_EXPORTS)
24
24
#define CHASSIS_API __declspec(dllexport)
 
25
#elif defined(mysql_chassis_STATIC)
 
26
#define CHASSIS_API 
25
27
#else
26
28
#define CHASSIS_API extern __declspec(dllimport)
27
29
#endif