Skip to content

Commit

Permalink
Module purview can only contain direct preprocessor code (#4029)
Browse files Browse the repository at this point in the history
Resolved MSVC Warning C5202: a global module fragment can only contain preprocessor directives
  • Loading branch information
matt77hias committed Jun 19, 2024
1 parent 514b695 commit af8cd4e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/fmt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ module;
# include <stdint.h>
# include <stdio.h>
# include <time.h>

import std;
#endif
#include <cerrno>
#include <climits>
Expand Down Expand Up @@ -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 }
Expand Down

0 comments on commit af8cd4e

Please sign in to comment.