Enable modules in clang 16

This commit is contained in:
Victor Zverovich
2023-04-10 08:44:43 -07:00
parent 1d0257e4c0
commit 13bf99f9db

View File

@ -1,10 +1,9 @@
module; module;
#ifndef __cpp_modules
# error Module not supported. #if !(defined(__cpp_modules) || FMT_CLANG_VERSION >= 1600)
# error module not supported
#endif #endif
// put all implementation-provided headers into the global module fragment
// to prevent attachment to this module
#if !defined(_CRT_SECURE_NO_WARNINGS) && defined(_MSC_VER) #if !defined(_CRT_SECURE_NO_WARNINGS) && defined(_MSC_VER)
# define _CRT_SECURE_NO_WARNINGS # define _CRT_SECURE_NO_WARNINGS
#endif #endif
@ -12,6 +11,8 @@ module;
# define WIN32_LEAN_AND_MEAN # define WIN32_LEAN_AND_MEAN
#endif #endif
// Put all implementation-provided headers into the global module fragment
// to prevent attachment to this module.
#include <algorithm> #include <algorithm>
#include <cctype> #include <cctype>
#include <cerrno> #include <cerrno>