From: mathieu.desnoyers@efficios.com (Mathieu Desnoyers)
Subject: [lttng-dev] [PATCH lttng-tools v2] Fix: Define __STDC_LIMIT_MACROS to fix C++ builds
Date: Mon, 10 Feb 2014 17:55:28 +0000 (UTC) [thread overview]
Message-ID: <940168140.22070.1392054927992.JavaMail.zimbra@efficios.com> (raw)
In-Reply-To: <1392048262-17049-1-git-send-email-jeremie.galarneau@efficios.com>
Acked-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>
----- Original Message -----
> From: "J?r?mie Galarneau" <jeremie.galarneau@efficios.com>
> To: lttng-dev at lists.lttng.org
> Sent: Monday, February 10, 2014 11:04:22 AM
> Subject: [lttng-dev] [PATCH lttng-tools v2] Fix: Define __STDC_LIMIT_MACROS to fix C++ builds
>
> Necessary to include the fixed-width type limits on glibc versions
> older than 2.18 when building with a C++ compiler.
>
> Signed-off-by: J?r?mie Galarneau <jeremie.galarneau at efficios.com>
> ---
> include/lttng/lttng.h | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/include/lttng/lttng.h b/include/lttng/lttng.h
> index 18dec2a..f0be224 100644
> --- a/include/lttng/lttng.h
> +++ b/include/lttng/lttng.h
> @@ -23,7 +23,17 @@
> #define LTTNG_H
>
> #include <limits.h>
> +/*
> + * Necessary to include the fixed width type limits on glibc versions older
> + * than 2.18 when building with a C++ compiler.
> + */
> +#ifndef __STDC_LIMIT_MACROS
> +#define __STDC_LIMIT_MACROS
> +#include <stdint.h>
> +#undef __STDC_LIMIT_MACROS
> +#else /* #ifndef __STDC_LIMIT_MACROS */
> #include <stdint.h>
> +#endif /* #else #ifndef __STDC_LIMIT_MACROS */
> #include <sys/types.h>
>
> /* Error codes that can be returned by API calls */
> --
> 1.8.5.4
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>
--
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
next prev parent reply other threads:[~2014-02-10 17:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-07 23:32 [lttng-dev] [PATCH lttng-tools] " Jérémie Galarneau
2014-02-08 15:43 ` Mathieu Desnoyers
2014-02-10 16:04 ` [lttng-dev] [PATCH lttng-tools v2] " Jérémie Galarneau
2014-02-10 17:55 ` Mathieu Desnoyers [this message]
2014-02-11 21:50 ` David Goulet
2014-02-10 16:05 ` [lttng-dev] [PATCH lttng-tools] " Jérémie Galarneau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=940168140.22070.1392054927992.JavaMail.zimbra@efficios.com \
--to=mathieu.desnoyers@efficios.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox