summaryrefslogtreecommitdiff
path: root/libprint/libprint/export.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-07-17 14:58:46 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-07-17 14:58:46 +0300
commit7109002658f60b544822259aa8936f778dd4a8eb (patch)
tree8626173a78797f81f7c31d0edc63106c35ee5824 /libprint/libprint/export.hxx
parent14c0327b18b206b1b2d361ae4bf469398100b31d (diff)
Release version 1.0.0+6v1.0.0+6
Add .gitattributes file Add glue buildfile Update build/.gitignore files Rename int_libs and imp_libs variables to intf_libs and impl_libs in buildfile Add note about data-exporting DLLs to export.hxx Add LIBPRINT_VERSION_FULL macro definition to version.hxx.in
Diffstat (limited to 'libprint/libprint/export.hxx')
-rw-r--r--libprint/libprint/export.hxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/libprint/libprint/export.hxx b/libprint/libprint/export.hxx
index f4b591e..23e59fb 100644
--- a/libprint/libprint/export.hxx
+++ b/libprint/libprint/export.hxx
@@ -27,8 +27,13 @@
#else
// If none of the above macros are defined, then we assume we are being used
// by some third-party build system that cannot/doesn't signal the library
-// type. Note that this fallback works for both static and shared but in case
-// of shared will be sub-optimal compared to having dllimport.
+// type. Note that this fallback works for both static and shared libraries
+// provided the library only exports functions (in other words, no global
+// exported data) and for the shared case the result will be sub-optimal
+// compared to having dllimport. If, however, your library does export data,
+// then you will probably want to replace the fallback with the (commented
+// out) error since it won't work for the shared case.
//
# define LIBPRINT_SYMEXPORT // Using static or shared.
+//# error define LIBPRINT_STATIC or LIBPRINT_SHARED preprocessor macro to signal libprint library type being linked
#endif