Skip to content

Commit a84d3d6

Browse files
committed
Check CMake ambiguity
1 parent 43b47ef commit a84d3d6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/cpp/logstream.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ 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+
#if defined(__GNUC__)
45+
#error "GNUC and LOG4CXX_INIT_IOS_BASE are defined"
46+
#endif
4447
init(NULL);
4548
#endif
4649
flags(initval);

0 commit comments

Comments
 (0)