summaryrefslogtreecommitdiff
path: root/libhello/libhello/export.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-07-17 17:14:33 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-07-17 17:14:33 +0300
commit65e2207b053b854ccb89589880bc6778939fee23 (patch)
treeea3ecb2b8966b6e1e94f12912dc84f0ae2a747f5 /libhello/libhello/export.hxx
parenta69548c46440ccd24cd72e564faededd5068949b (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 LIBHELLO_VERSION_FULL macro definition to version.hxx.in
Diffstat (limited to 'libhello/libhello/export.hxx')
-rw-r--r--libhello/libhello/export.hxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/libhello/libhello/export.hxx b/libhello/libhello/export.hxx
index 576543d..5473f23 100644
--- a/libhello/libhello/export.hxx
+++ b/libhello/libhello/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 LIBHELLO_SYMEXPORT // Using static or shared.
+//# error define LIBHELLO_STATIC or LIBHELLO_SHARED preprocessor macro to signal libhello library type being linked
#endif