Skip to content

Commit c97bc69

Browse files
committed
Fix g++ on MacOS compilation error
1 parent 4d89919 commit c97bc69

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/log4cxx-macos.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ jobs:
3636
cxx: clang++
3737
odbc: ON
3838
qt: OFF
39+
- name: osx-g++
40+
os: macos-latest
41+
cxx: g++
42+
odbc: OFF
43+
qt: OFF
3944

4045
steps:
4146
- uses: actions/checkout@v4

src/main/cpp/logstream.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ logstream_base::logstream_ios_base::logstream_ios_base(std::ios_base::fmtflags i
4141
memset(this, 0, sizeof(*this));
4242
#endif
4343
#if LOG4CXX_INIT_IOS_BASE
44-
init(NULL);
44+
std::ios_base::Init{};
4545
#endif
4646
flags(initval);
4747
precision(initsize);

0 commit comments

Comments
 (0)