it’s 2019 and I hit a build error because of an unguarded pound-define in x11 
-
-
-
Is it “None”? :)
- 2 more replies
New conversation -
-
-
Huh?
#pragma once has been a (useable) thing since GCC 3. -
I might need to work with MSVC
- 3 more replies
New conversation -
-
-
We use pragma once on msvc, clang and gcc. I think it’s done.
-
I use it a lot, too, but IIRC the exact rules for deciding if two headers are "the same" (and thus eliminating one) may vary between compilers? Obviously, there's something of a "don't do anything stupid/clever, and this won't be a problem" aspect, but it's still not great.
- 3 more replies
New conversation -
-
-
It's 2019 and you still have to use include files
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Yeah well # pragma once might help, I thought it was cross compiler now
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.