diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-03 16:22:06 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-03 16:22:06 +0200 |
commit | 852126e1bc9b95529738d3225a141552d72b8e04 (patch) | |
tree | e67e03d14fc965699c0261c7e9adb4cbee1e1fb9 /odb/tracer/details | |
parent | 6f04a3e6c45da9ece655b5ff0270a8a178c4e645 (diff) |
Add support for MinGW build
Diffstat (limited to 'odb/tracer/details')
-rw-r--r-- | odb/tracer/details/config.h.in | 14 | ||||
-rw-r--r-- | odb/tracer/details/config.hxx | 23 | ||||
-rw-r--r-- | odb/tracer/details/export.hxx | 20 |
3 files changed, 54 insertions, 3 deletions
diff --git a/odb/tracer/details/config.h.in b/odb/tracer/details/config.h.in new file mode 100644 index 0000000..4e4d215 --- /dev/null +++ b/odb/tracer/details/config.h.in @@ -0,0 +1,14 @@ +/* file : odb/tracer/details/config.h.in + * author : Boris Kolpackov <boris@codesynthesis.com> + * copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC + * license : GNU GPL v2; see accompanying LICENSE file + */ + +/* This file is automatically processed by configure. */ + +#ifndef ODB_TRACER_DETAILS_CONFIG_H +#define ODB_TRACER_DETAILS_CONFIG_H + +#undef LIBODB_TRACER_STATIC_LIB + +#endif /* ODB_TRACER_DETAILS_CONFIG_H */ diff --git a/odb/tracer/details/config.hxx b/odb/tracer/details/config.hxx new file mode 100644 index 0000000..d8e15b6 --- /dev/null +++ b/odb/tracer/details/config.hxx @@ -0,0 +1,23 @@ +// file : odb/tracer/details/config.hxx +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2005-2010 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#ifndef ODB_TRACER_DETAILS_CONFIG_HXX +#define ODB_TRACER_DETAILS_CONFIG_HXX + +// no pre + +#ifdef HAVE_CONFIG_H +# include <odb/tracer/details/config.h> +#endif + +#ifndef LIBODB_TRACER_INCLUDE_SHORT + #ifdef _WIN32 + #define LIBODB_TRACER_INCLUDE_SHORT 1 + #endif +#endif + +// no post + +#endif // ODB_TRACER_DETAILS_CONFIG_HXX diff --git a/odb/tracer/details/export.hxx b/odb/tracer/details/export.hxx index 152a967..0bd43da 100644 --- a/odb/tracer/details/export.hxx +++ b/odb/tracer/details/export.hxx @@ -8,14 +8,28 @@ #include <odb/pre.hxx> +#include <odb/tracer/details/config.hxx> + #ifdef LIBODB_TRACER_STATIC_LIB # define LIBODB_TRACER_EXPORT #else # ifdef _WIN32 -# ifdef LIBODB_TRACER_DYNAMIC_LIB -# define LIBODB_TRACER_EXPORT __declspec(dllexport) +# ifdef _MSC_VER +# ifdef LIBODB_TRACER_DYNAMIC_LIB +# define LIBODB_TRACER_EXPORT __declspec(dllexport) +# else +# define LIBODB_TRACER_EXPORT __declspec(dllimport) +# endif # else -# define LIBODB_TRACER_EXPORT __declspec(dllimport) +# ifdef LIBODB_TRACER_DYNAMIC_LIB +# ifdef DLL_EXPORT +# define LIBODB_TRACER_EXPORT __declspec(dllexport) +# else +# define LIBODB_TRACER_EXPORT +# endif +# else +# define LIBODB_TRACER_EXPORT __declspec(dllimport) +# endif # endif # else # define LIBODB_TRACER_EXPORT |