Add #define FMT_EXTERN extern only when not FMT_HEADER_ONLY

This commit is contained in:
denchat 2019-05-02 14:09:11 +07:00 committed by GitHub
parent c6e6bfee4e
commit b4a4dcd788
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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