Re: [hackers] [libzahl] makefile: add ".POSIX:" line and use `c99` rather than `cc -std=c99` || M

From: Страхиња Радић <sr_AT_strahinja.org>
Date: Mon, 23 Feb 2026 19:48:38 +0100

Дана 26/02/22 08:02PM, noneofyourbusiness написа:
> I've checked the latest revision [1] as well, which sets CC to c17
> instead

Yeah, but ([1]):
> C Features
>
> * Use C99 without extensions (ISO/IEC 9899:1999).
> * Use POSIX.1-2008:
> - When using gcc define _POSIX_C_SOURCE 200809L.
> - Alternatively define _XOPEN_SOURCE 700.

Related discussion: [2]

I've yet to come across a system with a make which, without explicitly
set CC, doesn't set it in a way which is appropriate for the system and
project (I didn't use MacOS yet tbh), with the notable exception of
Haiku OS, which from my testing needs it set to `CC=clang` in order for
C99 programs to compile.


[1]: https://suckless.org/coding_style/
[2]: https://lists.suckless.org/dev/2409/35738.html
Received on Mon Feb 23 2026 - 19:48:38 CET

This archive was generated by hypermail 2.3.0 : Mon Feb 23 2026 - 20:00:35 CET