[Mesa-dev] [PATCH 6/6] mesa: move __cdecl and LONGSTRING to src/util/macros.h
Matt Turner
mattst88 at gmail.com
Tue Mar 10 21:51:44 PDT 2015
On Tue, Mar 10, 2015 at 6:44 PM, Brian Paul <brianp at vmware.com> wrote:
> ---
> src/mesa/main/compiler.h | 21 ---------------------
> src/util/macros.h | 20 ++++++++++++++++++++
> 2 files changed, 20 insertions(+), 21 deletions(-)
>
> diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h
> index f56dc3e..b0d8c8f 100644
> --- a/src/mesa/main/compiler.h
> +++ b/src/mesa/main/compiler.h
> @@ -113,27 +113,6 @@ extern "C" {
> #define LE32_TO_CPU( x ) CPU_TO_LE32( x )
>
>
> -
> -/**
> - * Use __cdecl to match gcc calling convention for caller stack cleanup
> - * so we can use the same assembly / codegen code on all platforms.
> - */
> -#if !defined(_MSC_VER)
> -#define __cdecl
> -#endif
> -
> -
> -
> -/**
> - * LONGSTRING macro
> - * gcc -pedantic warns about long string literals, LONGSTRING silences that.
> - */
> -#if !defined(__GNUC__)
> -# define LONGSTRING
> -#else
> -# define LONGSTRING __extension__
> -#endif
> -
This macro is only used in gl_enums.py. We might just move it there.
More information about the mesa-dev
mailing list