diff options
Diffstat (limited to 'gcc/cp/parse.y')
-rw-r--r-- | gcc/cp/parse.y | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/cp/parse.y b/gcc/cp/parse.y index fde3807..d162a45 100644 --- a/gcc/cp/parse.y +++ b/gcc/cp/parse.y @@ -101,11 +101,12 @@ empty_parms () { tree parms; - if (strict_prototype - || current_class_type != NULL) - parms = void_list_node; - else +#ifndef NO_IMPLICIT_EXTERN_C + if (in_system_header && current_class_type == NULL) parms = NULL_TREE; + else +#endif + parms = void_list_node; return parms; } |