That works reliably?
-
-
-
Assuming a correct C11 compiler, yes.
-
How much useful you can do with the result is another question.
-
Well, you can remove the need of checking with autotools, and defer checking to runtime. If not available, you can provide your own semantically equal replacement.
-
While I love this hack, as it is, it's still not a substitute for the kind of check that autotools makes. Consider XSI vs. GNU strerror_r(3), or functions with parameters of the same type but in different order (almost like sendfile(2) in macOS and FreeBSD).
-
It (rather a minor variant of it) can actually distinguish GNU vs XSI strerror_r and write a portable wrapper that can use either!
-
Ah, indeed, the return type is different!
-
Oh, then that's a stopper. :-(
- 1 more reply
New conversation -
-
-
Watching you use C makes me think maybe Duff’s Device wasn’t so bad.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Is there a way do make it work in the preprocessor?
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.