From 13e9e236ec3e0cd30bc26223430c8ff55026c08b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 4 May 2018 15:34:34 +0200 Subject: Regenerate libprint using bdep-new --- libprint/libprint/export.hxx | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'libprint/libprint/export.hxx') 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 -- cgit v1.1