diff options
| author | John Levon <john.levon@joyent.com> | 2020-05-07 05:16:27 -0700 |
|---|---|---|
| committer | John Levon <john.levon@joyent.com> | 2020-05-11 09:21:08 -0700 |
| commit | c8907381b10259bed3a871a2881c0f3b7287ab3c (patch) | |
| tree | 2a7ef4bf81af14eb5a41e39d939ec921d358be7f | |
| parent | e7d144c90b0aab78554a319cc0a94cafe23a72a2 (diff) | |
| download | illumos-joyent-c8907381b10259bed3a871a2881c0f3b7287ab3c.tar.gz | |
12705 remove __builtin_alloca() declaration from string.h
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Approved by: Gordon Ross <gordon.w.ross@gmail.com>
| -rw-r--r-- | usr/src/head/string.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/usr/src/head/string.h b/usr/src/head/string.h index 2194b70bd8..f75c14c59c 100644 --- a/usr/src/head/string.h +++ b/usr/src/head/string.h @@ -22,6 +22,7 @@ /* * Copyright 2014 Garrett D'Amore <garrett@damore.org> * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright 2020 Joyent, Inc. */ /* Copyright (c) 1988 AT&T */ @@ -139,13 +140,8 @@ extern char *strdup(const char *); #if defined(__EXTENSIONS__) || \ (!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX)) -#if defined(__GNUC__) -/* - * gcc provides this inlining facility but Studio C does not. - * We should use it exclusively once Studio C also provides it. - */ -extern void *__builtin_alloca(size_t); +#if defined(__GNUC__) #define strdupa(s) \ (__extension__( \ |
