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