Clean up alloca.h header.
This commit is contained in:
parent
e5ed21520c
commit
1ef3c31f81
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2013 Jonas 'Sortie' Termansen.
|
* Copyright (c) 2013, 2016 Jonas 'Sortie' Termansen.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and distribute this software for any
|
* Permission to use, copy, modify, and distribute this software for any
|
||||||
* purpose with or without fee is hereby granted, provided that the above
|
* purpose with or without fee is hereby granted, provided that the above
|
||||||
|
@ -24,19 +24,15 @@
|
||||||
|
|
||||||
#include <sys/__/types.h>
|
#include <sys/__/types.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef __size_t_defined
|
#ifndef __size_t_defined
|
||||||
#define __size_t_defined
|
#define __size_t_defined
|
||||||
#define __need_size_t
|
#define __need_size_t
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* If somehow another declaration of alloca happened. This shouldn't happen, but
|
#ifdef __cplusplus
|
||||||
glibc does this and we might as well do it also. */
|
extern "C" {
|
||||||
#undef alloca
|
#endif
|
||||||
|
|
||||||
/* Declare a function prototype despite that there really is no alloca function
|
/* Declare a function prototype despite that there really is no alloca function
|
||||||
in Sortix. The compiler will normally be run with -fbuiltin and simply use
|
in Sortix. The compiler will normally be run with -fbuiltin and simply use
|
||||||
|
|
Loading…
Reference in New Issue