Skip to content

Build with -std=gnu99 instead of -std=c99 - #71

Closed
fweimer-rh wants to merge 1 commit into
posva:mainfrom
fweimer-rh:c99
Closed

fweimer-rh wants to merge 1 commit into
posva:mainfrom
fweimer-rh:c99

Conversation

@fweimer-rh

Copy link
Copy Markdown

The latter activates strict POSIX mode with glibc, which disables the declaration of usleep in <unistd.h>, leading to an implicit function declaration.

Related to:

The latter activates strict POSIX mode with glibc, which disables
the declaration of usleep in <unistd.h>, leading to an implicit
function declaration.
@posva

posva commented Dec 22, 2022

Copy link
Copy Markdown
Owner

Thanks a lot for the links, I will try to review this and others during the holidays!

@Kreijstal

Copy link
Copy Markdown

that would create libc dependency :((((

@TimB87

TimB87 commented Nov 26, 2025

Copy link
Copy Markdown

This seems to fix a build error I see that can be worked around with -Wno-implicit-function-declaration.

../catimg-2.8.0/src/catimg.c:181:21: error: implicit declaration of function 'usleep'; did you mean 'sleep'? [-Wimplicit-function-declaration]
  181 |                     usleep(img.delays[frame - 1] * 10000);
      |                     ^~~~~~
      |                     sleep
[..]
../catimg-2.8.0/src/sh_utils.c:60:14: error: implicit declaration of function 'fileno' [-Wimplicit-function-declaration]
   60 |     int fd = fileno(stdin);
      |              ^~~~~~

@posva posva closed this Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants