summaryrefslogtreecommitdiff
path: root/libprint/libprint/export.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-05-04 15:34:34 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-05-04 15:34:34 +0200
commit13e9e236ec3e0cd30bc26223430c8ff55026c08b (patch)
treefa49c5812ccda90695c2f744ad56a1f1ff30a99f /libprint/libprint/export.hxx
parent4bf5e3245a1c10968938dc6f47b75ee816f48082 (diff)
Regenerate libprint using bdep-new
Diffstat (limited to 'libprint/libprint/export.hxx')
-rw-r--r--libprint/libprint/export.hxx18
1 files changed, 8 insertions, 10 deletions
diff --git a/libprint/libprint/export.hxx b/libprint/libprint/export.hxx
index dedfa65..f4b591e 100644
--- a/libprint/libprint/export.hxx
+++ b/libprint/libprint/export.hxx
@@ -1,30 +1,28 @@
-// file: libprint/export.hxx -*- C++ -*-
-
#pragma once
// Normally we don't export class templates (but do complete specializations),
// inline functions, and classes with only inline member functions. Exporting
// classes that inherit from non-exported/imported bases (e.g., std::string)
// will end up badly. The only known workarounds are to not inherit or to not
-// export. Also, MinGW GCC doesn't like seeing non-exported function being
+// export. Also, MinGW GCC doesn't like seeing non-exported functions being
// used before their inline definition. The workaround is to reorder code. In
// the end it's all trial and error.
#if defined(LIBPRINT_STATIC) // Using static.
-# define LIBPRINT_EXPORT
+# define LIBPRINT_SYMEXPORT
#elif defined(LIBPRINT_STATIC_BUILD) // Building static.
-# define LIBPRINT_EXPORT
+# define LIBPRINT_SYMEXPORT
#elif defined(LIBPRINT_SHARED) // Using shared.
# ifdef _WIN32
-# define LIBPRINT_EXPORT __declspec(dllimport)
+# define LIBPRINT_SYMEXPORT __declspec(dllimport)
# else
-# define LIBPRINT_EXPORT
+# define LIBPRINT_SYMEXPORT
# endif
#elif defined(LIBPRINT_SHARED_BUILD) // Building shared.
# ifdef _WIN32
-# define LIBPRINT_EXPORT __declspec(dllexport)
+# define LIBPRINT_SYMEXPORT __declspec(dllexport)
# else
-# define LIBPRINT_EXPORT
+# define LIBPRINT_SYMEXPORT
# endif
#else
// If none of the above macros are defined, then we assume we are being used
@@ -32,5 +30,5 @@
// type. Note that this fallback works for both static and shared but in case
// of shared will be sub-optimal compared to having dllimport.
//
-# define LIBPRINT_EXPORT // Using static or shared.
+# define LIBPRINT_SYMEXPORT // Using static or shared.
#endif