mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-02 14:01:26 +00:00
oslibs, codecs, opus/opus_defines.h update:
restrict is broken with gcc < 4, don't use: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=6392 git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1541 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
d73b0f5867
commit
e507e05b5c
2 changed files with 16 additions and 2 deletions
|
@ -86,7 +86,11 @@ extern "C" {
|
|||
# endif
|
||||
# endif
|
||||
|
||||
#if (!defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L) )
|
||||
#if (defined(__GNUC__) && (__GNUC__ < 4))
|
||||
/* __restrict is broken with gcc < 4.0
|
||||
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=6392 */
|
||||
# define OPUS_RESTRICT
|
||||
#elif (!defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L) )
|
||||
# if OPUS_GNUC_PREREQ(3,0)
|
||||
# define OPUS_RESTRICT __restrict__
|
||||
# elif (defined(_MSC_VER) && _MSC_VER >= 1400)
|
||||
|
|
|
@ -86,7 +86,17 @@ extern "C" {
|
|||
# endif
|
||||
# endif
|
||||
|
||||
#if (!defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L) )
|
||||
#if defined(__WATCOMC__)
|
||||
# if (__WATCOMC__ >= 1250)
|
||||
# define OPUS_RESTRICT __restrict
|
||||
# else
|
||||
# define OPUS_RESTRICT
|
||||
# endif
|
||||
#elif (defined(__GNUC__) && (__GNUC__ < 4))
|
||||
/* __restrict is broken with gcc < 4.0
|
||||
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=6392 */
|
||||
# define OPUS_RESTRICT
|
||||
#elif (!defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L) )
|
||||
# if OPUS_GNUC_PREREQ(3,0)
|
||||
# define OPUS_RESTRICT __restrict__
|
||||
# elif (defined(_MSC_VER) && _MSC_VER >= 1400)
|
||||
|
|
Loading…
Reference in a new issue