Add support for MIPS architecture to SDL_config.h

This commit is contained in:
Tom Callaway 2015-09-09 12:08:00 -04:00
parent f3a8272444
commit 5845e6baf8
2 changed files with 12 additions and 1 deletions

View File

@ -1,6 +1,6 @@
Name: SDL2
Version: 2.0.3
Release: 6%{?dist}
Release: 7%{?dist}
Summary: A cross-platform multimedia library
Group: System Environment/Libraries
URL: http://www.libsdl.org/
@ -119,6 +119,9 @@ rm -f %{buildroot}%{_libdir}/*.a
%{_datadir}/aclocal/*
%changelog
* Fri Sep 04 2015 Michal Toman <mtoman@fedoraproject.org> - 2.0.3-7
- Add support for MIPS architecture to SDL_config.h
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

View File

@ -66,6 +66,14 @@
#include "SDL_config-sparc.h"
#elif defined(__aarch64__)
#include "SDL_config-aarch64.h"
#elif defined(__mips64) && defined(__MIPSEL__)
#include "SDL_config-mips64el.h"
#elif defined(__mips64)
#include "SDL_config-mips64.h"
#elif defined(__mips) && defined(__MIPSEL__)
#include "SDL_config-mipsel.h"
#elif defined(__mips)
#include "SDL_config-mips.h"
#else
#error "The SDL2-devel package is not usable with the architecture."
#endif