Skip to content

Commit

Permalink
Port: win32 DLLs don't support hidden symbols
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Jeanson <[email protected]>
Signed-off-by: Jérémie Galarneau <[email protected]>
  • Loading branch information
mjeanson authored and jgalar committed Feb 14, 2017
1 parent 07bb6d7 commit 70c6956
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/common/macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,14 @@ void *zmalloc(size_t len)
#define LTTNG_PACKED __attribute__((__packed__))
#endif

#ifndef LTTNG_HIDDEN
/*
* LTTNG_HIDDEN: set the hidden attribute for internal functions
* On Windows, symbols are local unless explicitly exported,
* see https://gcc.gnu.org/wiki/Visibility
*/
#if defined(_WIN32) || defined(__CYGWIN__)
#define LTTNG_HIDDEN
#else
#define LTTNG_HIDDEN __attribute__((visibility("hidden")))
#endif

Expand Down

0 comments on commit 70c6956

Please sign in to comment.