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:
Ozkan Sezer 2017-12-15 15:46:51 +00:00
parent d73b0f5867
commit e507e05b5c
2 changed files with 16 additions and 2 deletions

View file

@ -86,7 +86,11 @@ extern "C" {
# endif # endif
# 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) # if OPUS_GNUC_PREREQ(3,0)
# define OPUS_RESTRICT __restrict__ # define OPUS_RESTRICT __restrict__
# elif (defined(_MSC_VER) && _MSC_VER >= 1400) # elif (defined(_MSC_VER) && _MSC_VER >= 1400)

View file

@ -86,7 +86,17 @@ extern "C" {
# endif # endif
# 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) # if OPUS_GNUC_PREREQ(3,0)
# define OPUS_RESTRICT __restrict__ # define OPUS_RESTRICT __restrict__
# elif (defined(_MSC_VER) && _MSC_VER >= 1400) # elif (defined(_MSC_VER) && _MSC_VER >= 1400)