summaryrefslogtreecommitdiff
path: root/toxcore/ccompat.h
AgeCommit message (Collapse)Author
2018-05-10Make toxcore compile on BSDendoffile78
2018-03-16Add default stderr logger for logging to nullptr.iphydf
This is useful for debugging a function that doesn't have a logger available. It should not be used in production code, since it outputs to stderr.
2018-02-24Fix a bunch of compiler warnings and remove suppressions.iphydf
2018-02-14Get rid of the only GNU extension we used.iphydf
2018-01-30Use nullptr as NULL pointer constant instead of NULL or 0.iphydf
This changes only code, no string literals or comments.
2018-01-22Use <stdlib.h> for alloca on FreeBSD.iphydf
https://www.freebsd.org/cgi/man.cgi?alloca If stdlib.h does not define alloca, and we're using GCC (or Clang), we define the macro ourselves in terms of a GCC builtin.
2017-01-28Add VLA compatibility macro for C89-ish compilers.iphydf