| 12345678910111213141516171819202122232425 |
- /*
- * Copyright (c) mlibc & plct lab
- *
- * SPDX-License-Identifier: MIT
- *
- * Change Logs:
- * Date Author Notes
- * 2024/7/24 0Bitbiscuits the first version
- */
- #ifndef MLIBC_SYS_FEATURES_H__
- #define MLIBC_SYS_FEATURES_H__
- /* Macro to test version of GCC. Returns 0 for non-GCC or too old GCC. */
- #ifndef __GNUC_PREREQ
- #if defined __GNUC__ && defined __GNUC_MINOR__
- # define __GNUC_PREREQ(maj, min) \
- ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
- #else
- #define __GNUC_PREREQ(maj, min) 0
- #endif /* defined __GNUC__ && defined __GNUC_MINOR__ */
- #endif /* __GNUC_PREREQ */
- #define __GNUC_PREREQ__(ma, mi) __GNUC_PREREQ(ma, mi)
- #endif /* MLIBC_SYS_FEATURES_H__ */
|