mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 06:12:43 +00:00 
			
		
		
		
	 b9c753f6f9
			
		
	
	
		b9c753f6f9
		
	
	
	
	
		
			
			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.
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			823 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			823 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2020, the SerenityOS developers.
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <sys/cdefs.h>
 | |
| 
 | |
| __BEGIN_DECLS
 | |
| 
 | |
| typedef void (*AtExitFunction)(void*);
 | |
| 
 | |
| extern void __libc_init(void);
 | |
| extern void __malloc_init(void);
 | |
| extern void __stdio_init(void);
 | |
| extern void __begin_atexit_locking(void);
 | |
| extern void _init(void);
 | |
| extern bool __environ_is_malloced;
 | |
| extern bool __stdio_is_initialized;
 | |
| extern bool __heap_is_stable;
 | |
| extern void* __auxiliary_vector;
 | |
| 
 | |
| int __cxa_atexit(AtExitFunction exit_function, void* parameter, void* dso_handle);
 | |
| void __cxa_finalize(void* dso_handle);
 | |
| __attribute__((noreturn)) void __cxa_pure_virtual(void) __attribute__((weak));
 | |
| __attribute__((noreturn)) void __stack_chk_fail(void);
 | |
| __attribute__((noreturn)) void __stack_chk_fail_local(void);
 | |
| 
 | |
| __END_DECLS
 |