mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-01 16:58:30 +00:00
Replace COSMO define with _COSMO_SOURCE
This change might cause ABI breakages for /opt/cosmos. It's needed to help us better conform to header declaration practices.
This commit is contained in:
parent
a033b65a33
commit
c776a32f75
238 changed files with 858 additions and 1069 deletions
|
@ -97,13 +97,13 @@ void Visit(const char *path) {
|
|||
char *map;
|
||||
size_t size;
|
||||
bool isheader;
|
||||
if (!_endswith(path, ".h") && !_endswith(path, ".inc")) return;
|
||||
if (_endswith(path, ".internal.h")) return;
|
||||
if (_endswith(path, "/internal.h")) return;
|
||||
if (_endswith(path, ".internal.inc")) return;
|
||||
if (_endswith(path, "/internal.inc")) return;
|
||||
if (_startswith(path, "libc/isystem/")) return;
|
||||
isheader = _endswith(path, ".h");
|
||||
if (!endswith(path, ".h") && !endswith(path, ".inc")) return;
|
||||
if (endswith(path, ".internal.h")) return;
|
||||
if (endswith(path, "/internal.h")) return;
|
||||
if (endswith(path, ".internal.inc")) return;
|
||||
if (endswith(path, "/internal.inc")) return;
|
||||
if (startswith(path, "libc/isystem/")) return;
|
||||
isheader = endswith(path, ".h");
|
||||
if (isheader && isinterned(visited, path)) return;
|
||||
appends(&output, "\n\f\n/*!BEGIN ");
|
||||
appends(&output, path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue