Allow redundant defines in define aliases
A bit ugly, but this seems necessary in order to allow defines that seem reasonable to provide together, such as -DLFS_NO_LOG and -DLFS_NO_DEBUG. This is useful for allowing define combinations that also work in older builds.
This commit is contained in:
+18
@@ -26,20 +26,38 @@
|
|||||||
|
|
||||||
// LFS_BIGGEST enables all opt-in features
|
// LFS_BIGGEST enables all opt-in features
|
||||||
#ifdef LFS_BIGGEST
|
#ifdef LFS_BIGGEST
|
||||||
|
#ifndef LFS_CKPROGS
|
||||||
#define LFS_CKPROGS
|
#define LFS_CKPROGS
|
||||||
|
#endif
|
||||||
|
#ifndef LFS_CKFETCHES
|
||||||
#define LFS_CKFETCHES
|
#define LFS_CKFETCHES
|
||||||
|
#endif
|
||||||
|
#ifndef LFS_CKPARITY
|
||||||
#define LFS_CKPARITY
|
#define LFS_CKPARITY
|
||||||
|
#endif
|
||||||
|
#ifndef LFS_CKDATACKSUMS
|
||||||
#define LFS_CKDATACKSUMS
|
#define LFS_CKDATACKSUMS
|
||||||
|
#endif
|
||||||
|
#ifndef LFS_GC
|
||||||
#define LFS_GC
|
#define LFS_GC
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
// LFS_NO_LOG disables all logging macros
|
// LFS_NO_LOG disables all logging macros
|
||||||
#ifdef LFS_NO_LOG
|
#ifdef LFS_NO_LOG
|
||||||
|
#ifndef LFS_NO_DEBUG
|
||||||
#define LFS_NO_DEBUG
|
#define LFS_NO_DEBUG
|
||||||
|
#endif
|
||||||
|
#ifndef LFS_NO_INFO
|
||||||
#define LFS_NO_INFO
|
#define LFS_NO_INFO
|
||||||
|
#endif
|
||||||
|
#ifndef LFS_NO_WARN
|
||||||
#define LFS_NO_WARN
|
#define LFS_NO_WARN
|
||||||
|
#endif
|
||||||
|
#ifndef LFS_NO_ERROR
|
||||||
#define LFS_NO_ERROR
|
#define LFS_NO_ERROR
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// System includes
|
// System includes
|
||||||
|
|||||||
Reference in New Issue
Block a user