Project

General

Profile

Actions

Bug #5367

closed

complex.h /* #if !defined(__cplusplus) */ comment foils gcc fixincludes

Added by Richard PALO about 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Category:
lib - userland libraries
Start date:
2014-11-22
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:

Description

With the recently merged libm, the beginning of complex.h is as follows:

#ifndef _COMPLEX_H
#define _COMPLEX_H

#ifdef  __cplusplus
extern "C" {
#endif

/* #if !defined(__cplusplus) */

/*
 * Compilation environments for Solaris must provide the _Imaginary datatype
 * and the compiler intrinsics _Complex_I and _Imaginary_I
 */

so fixincludes, when building gcc, will conveniently substitute this 'marker' line giving:

#ifndef _COMPLEX_H
#define _COMPLEX_H

#ifdef  __cplusplus
extern "C" {
#endif

#ifdef  __cplusplus
extern "C" {
#endif
/*
 * Compilation environments for Solaris must provide the _Imaginary datatype
 * and the compiler intrinsics _Complex_I and _Imaginary_I
 */

unfortunately, adding the opening brace causes precompiler issues as the corresponding closing brace is not added at the same time.

As provided to Piotr, simply deleting these comments seems to get over the problem.


Files

Actions

Also available in: Atom PDF