Closed eriktorbjorn closed 1 year ago
Thanks!
I don't get that error on my platforms but I havn't updated gcc there yet. What platform are you on?
I've added the line you suggested to macros.cpp
as it doesn't do any damage. Could be that it was included lower down in the chain before and now it isn't?
I don't get that error on my platforms but I havn't updated gcc there yet. What platform are you on?
Linux, specifically the unstable version of Debian. It's using GCC 12.2.0, and glibc 2.36.
But I did try compiling it on Ubuntu, whatever version I got running in Windows 10 at work, and I didn't get any errors there. So I don't know what's up with that.
I don't get the error on my machine, which runs Ubuntu 22.04. By compiling macros.cpp with the -E option, I can examine the preprocessor output to see where time.h is included. It goes like this: macros.cpp includes "macros.hpp", which includes \
Well, the inclusion of ext/atomicity.h seems to have been removed fairly recently, as in less than a year ago. Perhaps that's why?
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=f3e22baec0290c23654e99bf184153765944f4aa
When I compile confusion_patched I get a number of errors complaining about various time-related things not being declared:
Adding
#include <time.h>
seems to fix this.