mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
`__attribute__((noreturn))` has been supported since GCC 2.5, that was released October 22, 1993. It doesn't make sense to check if the version is at least that one, we are compiling for C99, that is more modern. [1] Also, remove the MSVC check. This code is never compiled with it so there may be problems that need to be solved to make it compile. All releases cross-compiled from linux. If there is an actual need to support MSVC, the compiler definitions can be added again. Also, if the compiler is not supported, the compiler helpers default to nothing, so the code can still compile. [1] https://gcc.gnu.org/onlinedocs/ Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>
21 lines
350 B
C
21 lines
350 B
C
/*
|
|
* This file is part of RGBDS.
|
|
*
|
|
* Copyright (c) 2014-2018, RGBDS contributors.
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#ifndef HELPERS_H
|
|
#define HELPERS_H
|
|
|
|
#ifdef __GNUC__
|
|
/* GCC or compatible */
|
|
#define noreturn __attribute__ ((noreturn))
|
|
#else
|
|
/* Unsupported, but no need to throw a fit */
|
|
#define noreturn
|
|
#endif
|
|
|
|
#endif /* HELPERS_H */
|