mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-04 17:40:35 +00:00
Module purview can only contain direct preprocessor code (#4029)
Resolved MSVC Warning C5202: a global module fragment can only contain preprocessor directives
This commit is contained in:
parent
514b6955d2
commit
af8cd4e404
@ -41,8 +41,6 @@ module;
|
|||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
# include <stdio.h>
|
# include <stdio.h>
|
||||||
# include <time.h>
|
# include <time.h>
|
||||||
|
|
||||||
import std;
|
|
||||||
#endif
|
#endif
|
||||||
#include <cerrno>
|
#include <cerrno>
|
||||||
#include <climits>
|
#include <climits>
|
||||||
@ -83,6 +81,10 @@ import std;
|
|||||||
|
|
||||||
export module fmt;
|
export module fmt;
|
||||||
|
|
||||||
|
#ifdef FMT_IMPORT_STD
|
||||||
|
import std;
|
||||||
|
#endif
|
||||||
|
|
||||||
#define FMT_EXPORT export
|
#define FMT_EXPORT export
|
||||||
#define FMT_BEGIN_EXPORT export {
|
#define FMT_BEGIN_EXPORT export {
|
||||||
#define FMT_END_EXPORT }
|
#define FMT_END_EXPORT }
|
||||||
|
Loading…
Reference in New Issue
Block a user