mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 00:49:04 +02:00
util: Add DETECT_ARCH_SPARC64 for sparc
By reference to https://sourceforge.net/p/predef/wiki/Architectures/ Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Acked-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36635>
This commit is contained in:
parent
272c331913
commit
a3e3c889d1
1 changed files with 21 additions and 13 deletions
|
|
@ -1,8 +1,8 @@
|
|||
/**************************************************************************
|
||||
*
|
||||
*
|
||||
* Copyright 2008 VMware, Inc.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
|
|
@ -10,11 +10,11 @@
|
|||
* distribute, sub license, and/or sell copies of the Software, and to
|
||||
* permit persons to whom the Software is furnished to do so, subject to
|
||||
* the following conditions:
|
||||
*
|
||||
*
|
||||
* The above copyright notice and this permission notice (including the
|
||||
* next paragraph) shall be included in all copies or substantial portions
|
||||
* of the Software.
|
||||
*
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
||||
|
|
@ -22,24 +22,24 @@
|
|||
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
*
|
||||
**************************************************************************/
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Gallium configuration defines.
|
||||
*
|
||||
* This header file sets several defines based on the compiler, processor
|
||||
* architecture, and operating system being used. These defines should be used
|
||||
* throughout the code to facilitate porting to new platforms. It is likely that
|
||||
* this file is auto-generated by an autoconf-like tool at some point, as some
|
||||
* things cannot be determined by pre-defined environment alone.
|
||||
*
|
||||
*
|
||||
* This header file sets several defines based on the compiler, processor
|
||||
* architecture, and operating system being used. These defines should be used
|
||||
* throughout the code to facilitate porting to new platforms. It is likely that
|
||||
* this file is auto-generated by an autoconf-like tool at some point, as some
|
||||
* things cannot be determined by pre-defined environment alone.
|
||||
*
|
||||
* See also:
|
||||
* - http://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html
|
||||
* - echo | gcc -dM -E - | sort
|
||||
* - http://msdn.microsoft.com/en-us/library/b0084kay.aspx
|
||||
*
|
||||
*
|
||||
* @author José Fonseca <jfonseca@vmware.com>
|
||||
*/
|
||||
|
||||
|
|
@ -126,6 +126,10 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(__sparc__) || defined(__sparc)
|
||||
#define DETECT_ARCH_SPARC64 1
|
||||
#endif
|
||||
|
||||
#ifndef DETECT_ARCH_X86
|
||||
#define DETECT_ARCH_X86 0
|
||||
#endif
|
||||
|
|
@ -190,4 +194,8 @@
|
|||
#define DETECT_ARCH_LOONGARCH64 0
|
||||
#endif
|
||||
|
||||
#ifndef DETECT_ARCH_SPARC64
|
||||
#define DETECT_ARCH_SPARC64 0
|
||||
#endif
|
||||
|
||||
#endif /* UTIL_DETECT_ARCH_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue