Skip to content

Commit e77fc91

Browse files
committed
修复一个错误
1 parent 4396a30 commit e77fc91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bee/lua/error.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#include <bee/lua/error.h>
22
#include <bee/nonstd/format.h>
33

4-
#include <system_error>
5-
64
#if defined(_WIN32)
75
# include <Windows.h>
86
# include <bee/win/cwtf8.h>
@@ -63,7 +61,9 @@ namespace bee::lua {
6361
return ::WSAGetLastError();
6462
}
6563
#else
66-
using sys_category = std::generic_category;
64+
static const std::error_category& sys_category() {
65+
return std::generic_category();
66+
}
6767
static int last_sys_error() {
6868
return errno;
6969
}

0 commit comments

Comments
 (0)