From 1ef3c31f8180648aa946a203c55783658dc44356 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Wed, 6 Apr 2016 13:16:18 +0200 Subject: [PATCH] Clean up alloca.h header. --- libc/include/alloca.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/libc/include/alloca.h b/libc/include/alloca.h index c981df32..9b859329 100644 --- a/libc/include/alloca.h +++ b/libc/include/alloca.h @@ -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 * purpose with or without fee is hereby granted, provided that the above @@ -24,19 +24,15 @@ #include -#ifdef __cplusplus -extern "C" { -#endif - #ifndef __size_t_defined #define __size_t_defined #define __need_size_t #include #endif -/* If somehow another declaration of alloca happened. This shouldn't happen, but - glibc does this and we might as well do it also. */ -#undef alloca +#ifdef __cplusplus +extern "C" { +#endif /* 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