Add #define FMT_EXTERN extern only when not FMT_HEADER_ONLY
This commit is contained in:
parent
c6e6bfee4e
commit
b4a4dcd788
@ -199,6 +199,12 @@
|
|||||||
# define FMT_EXTERN_TEMPLATE_API
|
# define FMT_EXTERN_TEMPLATE_API
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !define(FMT_HEADER_ONLY)
|
||||||
|
# define FMT_EXTERN extern
|
||||||
|
#else
|
||||||
|
# define FMT_EXTERN
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef FMT_ASSERT
|
#ifndef FMT_ASSERT
|
||||||
# define FMT_ASSERT(condition, message) assert((condition) && message)
|
# define FMT_ASSERT(condition, message) assert((condition) && message)
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user