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:
Matthias Moulin 2024-06-19 22:00:29 +02:00 committed by GitHub
parent 514b6955d2
commit af8cd4e404
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,8 +41,6 @@ module;
# include <stdint.h>
# include <stdio.h>
# include <time.h>
import std;
#endif
#include <cerrno>
#include <climits>
@ -83,6 +81,10 @@ import std;
export module fmt;
#ifdef FMT_IMPORT_STD
import std;
#endif
#define FMT_EXPORT export
#define FMT_BEGIN_EXPORT export {
#define FMT_END_EXPORT }