All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH lttng-tools 2/2] Port: win32 DLLs don't support hidden symbols
       [not found] <1485461362-31301-1-git-send-email-mjeanson@efficios.com>
@ 2017-01-26 20:09 ` Michael Jeanson
  2017-02-14 20:56 ` [PATCH lttng-tools 1/2] Port: add cygwin support to endian compat Jérémie Galarneau
  1 sibling, 0 replies; 2+ messages in thread
From: Michael Jeanson @ 2017-01-26 20:09 UTC (permalink / raw)
  To: lttng-dev; +Cc: jgalar

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
---
 src/common/macros.h | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/common/macros.h b/src/common/macros.h
index 8ae6535..90849ed 100644
--- a/src/common/macros.h
+++ b/src/common/macros.h
@@ -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
 
-- 
2.7.4

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH lttng-tools 1/2] Port: add cygwin support to endian compat
       [not found] <1485461362-31301-1-git-send-email-mjeanson@efficios.com>
  2017-01-26 20:09 ` [PATCH lttng-tools 2/2] Port: win32 DLLs don't support hidden symbols Michael Jeanson
@ 2017-02-14 20:56 ` Jérémie Galarneau
  1 sibling, 0 replies; 2+ messages in thread
From: Jérémie Galarneau @ 2017-02-14 20:56 UTC (permalink / raw)
  To: Michael Jeanson; +Cc: lttng-dev, Jeremie Galarneau

Both patches merged in master and stable-2.9.

Thanks!
Jérémie

On 26 January 2017 at 15:09, Michael Jeanson <mjeanson@efficios.com> wrote:
> Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
> ---
>  src/common/compat/endian.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/common/compat/endian.h b/src/common/compat/endian.h
> index 4edc124..6427feb 100644
> --- a/src/common/compat/endian.h
> +++ b/src/common/compat/endian.h
> @@ -18,7 +18,7 @@
>  #ifndef _COMPAT_ENDIAN_H
>  #define _COMPAT_ENDIAN_H
>
> -#ifdef __linux__
> +#if defined(__linux__) || defined(__CYGWIN__)
>  #include <endian.h>
>
>  /*
> --
> 2.7.4
>



-- 
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-02-14 21:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1485461362-31301-1-git-send-email-mjeanson@efficios.com>
2017-01-26 20:09 ` [PATCH lttng-tools 2/2] Port: win32 DLLs don't support hidden symbols Michael Jeanson
2017-02-14 20:56 ` [PATCH lttng-tools 1/2] Port: add cygwin support to endian compat Jérémie Galarneau

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.