[lttng-dev] [Babeltrace PATCH 04/23] Add MinGW definitions to endian.h

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Mon Jul 8 10:12:38 EDT 2013


merged as:

commit 1b168db0ed3a64fb3513d6cacff1d0d96a7ae35d
Author: JP Ikaheimonen <jp_ikaheimonen at mentor.com>
Date:   Mon Jul 8 10:03:27 2013 -0400

    Add MinGW definitions to endian.h
    
    Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>


* Ikaheimonen, JP (jp_ikaheimonen at mentor.com) wrote:
> ---
>  include/babeltrace/endian.h | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)
> 
> diff --git a/include/babeltrace/endian.h b/include/babeltrace/endian.h
> index 9eee0c1..f15a44f 100644
> --- a/include/babeltrace/endian.h
> +++ b/include/babeltrace/endian.h
> @@ -29,6 +29,22 @@
>  
>  #ifdef __FreeBSD__
>  #include <machine/endian.h>
> +#elif defined(__MINGW32__)
> +#ifndef __BIG_ENDIAN
> +#define __BIG_ENDIAN 4321
> +#endif
> +#ifndef __LITTLE_ENDIAN
> +#define __LITTLE_ENDIAN 1234
> +#endif
> +
> +#ifndef __BYTE_ORDER
> +#define __BYTE_ORDER __LITTLE_ENDIAN
> +#endif
> +
> +#define LITTLE_ENDIAN  __LITTLE_ENDIAN
> +#define BIG_ENDIAN     __BIG_ENDIAN
> +#define PDP_ENDIAN     __PDP_ENDIAN
> +#define BYTE_ORDER     __BYTE_ORDER
>  #else
>  #include <endian.h>
>  #endif
> -- 
> 1.8.1.msysgit.1
> 

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com



More information about the lttng-dev mailing list