mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:07:35 +00:00
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:
parent
a221596614
commit
b9c753f6f9
16 changed files with 56 additions and 56 deletions
|
@ -31,9 +31,9 @@ int __pthread_key_delete(pthread_key_t);
|
|||
void* __pthread_getspecific(pthread_key_t);
|
||||
int __pthread_setspecific(pthread_key_t, const void*);
|
||||
|
||||
int __pthread_self();
|
||||
int __pthread_self(void);
|
||||
|
||||
void __pthread_key_destroy_for_current_thread();
|
||||
void __pthread_key_destroy_for_current_thread(void);
|
||||
|
||||
#define __PTHREAD_MUTEX_NORMAL 0
|
||||
#define __PTHREAD_MUTEX_RECURSIVE 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue