Skip to main content
  • Home
  • login
  • Browse the archive

    swh mirror partner logo
swh logo
SoftwareHeritage
Software
Heritage
Mirror
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

Raw File
Permalink

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
content badge Iframe embedding
swh:1:cnt:feeb5434855748507784da736117754568ba15c5
Notes on ANSI C
===============

When building for pure ANSI C (C89/C90), you must configure with at least
the following configuration settings:

-   `no-asm`

    There are cases of `asm()` calls in our C source, which isn't supported
    in pure ANSI C.

-   `no-secure-memory`

    The secure memory calls aren't supported with ANSI C.

-   `-D_XOPEN_SOURCE=1`

    This macro enables the use of the following types, functions and global
    variables:

    -   `timezone`

-   `-D_POSIX_C_SOURCE=200809L`

    This macro enables the use of the following types, functions and global
    variables:

    -   `ssize_t`
    -   `strdup()`

It's arguable that with gcc and clang, all of these issues are removed when
defining the macro `_DEFAULT_SOURCE`.  However, that effectively sets the C
language level to C99, which isn't ANSI C.

ENEA — Copyright (C), ENEA. License: GNU AGPLv3+.
Legal notes  ::  JavaScript license information ::  Web API

back to top