Blame SOURCES/SDL_revision.h

dd468c
/*
dd468c
  Simple DirectMedia Layer
dd468c
  Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
dd468c
dd468c
  This software is provided 'as-is', without any express or implied
dd468c
  warranty.  In no event will the authors be held liable for any damages
dd468c
  arising from the use of this software.
dd468c
dd468c
  Permission is granted to anyone to use this software for any purpose,
dd468c
  including commercial applications, and to alter it and redistribute it
dd468c
  freely, subject to the following restrictions:
dd468c
dd468c
  1. The origin of this software must not be misrepresented; you must not
dd468c
     claim that you wrote the original software. If you use this software
dd468c
     in a product, an acknowledgment in the product documentation would be
dd468c
     appreciated but is not required.
dd468c
  2. Altered source versions must be plainly marked as such, and must not be
dd468c
     misrepresented as being the original software.
dd468c
  3. This notice may not be removed or altered from any source distribution.
dd468c
*/
dd468c
dd468c
/*
dd468c
 * This SDL_revision.h is a wrapper include file for the original SDL_revision.h,
dd468c
 * which has been renamed to SDL_revision-<arch>.h. There are conflicts for the
dd468c
 * original SDL_revision.h on multilib systems, which result from REVISION
dd468c
 * inconsistency between architecture builds, though, I'm not sure why.
dd468c
 * Computers are weird.
dd468c
 *
dd468c
 * Copyright (C) 2021 Tom Callaway <spotrh@gmail.com>
dd468c
 */
dd468c
dd468c
/**
dd468c
 *  \file SDL_revision.h
dd468c
 */
dd468c
dd468c
#ifdef SDL_revision_wrapper_h
dd468c
#error "SDL_revision_wrapper_h should not be defined!"
dd468c
#endif
dd468c
#define SDL_revision_wrapper_h
dd468c
dd468c
#if defined(__i386__)
dd468c
#include "SDL_revision-i386.h"
dd468c
#elif defined(__ia64__)
dd468c
#include "SDL_revision-ia64.h"
dd468c
#elif defined(__powerpc64__)
dd468c
# if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
dd468c
#include "SDL_revision-ppc64.h"
dd468c
# else
dd468c
#include "SDL_revision-ppc64le.h"
dd468c
# endif
dd468c
#elif defined(__powerpc__)
dd468c
#include "SDL_revision-ppc.h"
dd468c
#elif defined(__s390x__)
dd468c
#include "SDL_revision-s390x.h"
dd468c
#elif defined(__s390__)
dd468c
#include "SDL_revision-s390.h"
dd468c
#elif defined(__x86_64__)
dd468c
#include "SDL_revision-x86_64.h"
dd468c
#elif defined(__arm__)
dd468c
#include "SDL_revision-arm.h"
dd468c
#elif defined(__alpha__)
dd468c
#include "SDL_revision-alpha.h"
dd468c
#elif defined(__sparc__) && defined (__arch64__)
dd468c
#include "SDL_revision-sparc64.h"
dd468c
#elif defined(__sparc__)
dd468c
#include "SDL_revision-sparc.h"
dd468c
#elif defined(__aarch64__)
dd468c
#include "SDL_revision-aarch64.h"
dd468c
#elif defined(__mips64) && defined(__MIPSEL__)
dd468c
#include "SDL_revision-mips64el.h"
dd468c
#elif defined(__mips64)
dd468c
#include "SDL_revision-mips64.h"
dd468c
#elif defined(__mips) && defined(__MIPSEL__)
dd468c
#include "SDL_revision-mipsel.h"
dd468c
#elif defined(__mips)
dd468c
#include "SDL_revision-mips.h"
dd468c
#elif defined(__riscv) && defined(__riscv_xlen) && __riscv_xlen == 64
dd468c
#include "SDL_revision-riscv64.h"
dd468c
#else
dd468c
#error "The SDL2-devel package is not usable with the architecture."
dd468c
#endif
dd468c
dd468c
#undef SDL_revision_wrapper_h