mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-04-20 09:55:38 +00:00
lodepng.c: minor update (cf. mainstream PR/119)
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1648 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
626280708b
commit
c2dbafef4b
1 changed files with 3 additions and 1 deletions
|
@ -95,8 +95,10 @@ void* lodepng_realloc(void* ptr, size_t new_size);
|
|||
void lodepng_free(void* ptr);
|
||||
#endif /*LODEPNG_COMPILE_ALLOCATORS*/
|
||||
|
||||
/* restrict is not available in C90, but use it when supported by the compiler */
|
||||
#if (defined(__GNUC__) && defined(__GNUC_MINOR__) && (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1)) ||\
|
||||
(defined(_MSC_VER) && (_MSC_VER >= 1400)) || (defined(__WATCOMC__) && (__WATCOMC__ >= 1250))
|
||||
(defined(_MSC_VER) && (_MSC_VER >= 1400)) || \
|
||||
(defined(__WATCOMC__) && (__WATCOMC__ >= 1250) && !defined(__cplusplus))
|
||||
#define LODEPNG_RESTRICT __restrict
|
||||
#else
|
||||
#define LODEPNG_RESTRICT /* not available */
|
||||
|
|
Loading…
Reference in a new issue