And that will introduce a lot of new warnings into compilation
In details:
libtool:compile:g++-DHAVE_CONFIG_H-I.-I../include-I../include-Wall-Wno-unused-pedantic-MTAppenderSkeleton.lo-MD-MP-MF.deps/AppenderSkeleton.Tpo -c AppenderSkeleton.cpp -fPIC -DPIC -o .libs/AppenderSkeleton.oInfileincludedfrom../include/log4cpp/threading/Threading.hh:30,from../include/log4cpp/Appender.hh:25,from../include/log4cpp/AppenderSkeleton.hh:14,fromAppenderSkeleton.cpp:11:../include/log4cpp/threading/PThreads.hh:12:warning:"_GNU_SOURCE"redefined12|#define_GNU_SOURCE//added for cygwin compatibility|<command-line>:note:thisisthelocationofthepreviousdefinitionlibtool:compile:g++-DHAVE_CONFIG_H-I.-I../include-I../include-Wall-Wno-unused-pedantic-MTAppenderSkeleton.lo-MD-MP-MF.deps/AppenderSkeleton.Tpo -c AppenderSkeleton.cpp -o AppenderSkeleton.o >/dev/null2>&1mv-f.deps/AppenderSkeleton.Tpo .deps/AppenderSkeleton.PloThewarningsmightbeworkedaroundwithfixchangedto#ifndef_GNU_SOURCE#define_GNU_SOURCE//added for cygwin compatibility#endif
The change is proposed a while go. Since I do not have cygwin env to try the build, I can not check whether compilation with cygwin goes well now or still not.
Could you try it out with the modern environment please (both cygwin and log4cpp)?
Perhaps there was a change since then which would make these macro unnecessary for compilation on cygwin.
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello @dinostray,
Running the compilation with this change will cause the following warning issued for every source file when built on Ubuntu:
And that will introduce a lot of new warnings into compilation
In details:
The change is proposed a while go. Since I do not have cygwin env to try the build, I can not check whether compilation with cygwin goes well now or still not.
Could you try it out with the modern environment please (both cygwin and log4cpp)?
Perhaps there was a change since then which would make these macro unnecessary for compilation on cygwin.
Thanks