LibC+LibDl: Declare functions taking no arguments as taking void

In C++, a function declaration with an empty parameter list means that
the function takes no arguments. In C, however, it means that the
function takes an unspecified number of parameters.

What we did previously was therefore non-conforming. This caused a
config check to fail in the curl port, as it was able to redeclare
`rand` as taking an int parameter.
This commit is contained in:
Daniel Bertalan 2022-01-08 15:32:59 +01:00 committed by Linus Groh
commit b9c753f6f9
Notes: sideshowbarker 2024-07-19 01:59:31 +09:00
16 changed files with 56 additions and 56 deletions

View file

@ -8,7 +8,7 @@
#pragma once
// Defined in fenv.cpp, but we must not include fenv.h, so here's its prototype.
int fegetround();
int fegetround(void);
#define FLT_RADIX 2
#define DECIMAL_DIG 21