Closed Bug 10094 Opened 26 years ago Closed 24 years ago

do not do extern C over include files

Categories

(Core :: Graphics: ImageLib, defect, P3)

defect

Tracking

()

VERIFIED WORKSFORME
Future

People

(Reporter: Dan.Oscarsson, Assigned: pavlov)

Details

File: mozilla/modules/libimg/png/png.h When you do extern C over include files you may do extern C over overloaded C routines. With Sun Wokshop 5.0 there is C++ adapted standard include files with such overloads. And teherfore can the file not be compiled. Below fixed just so that it compiles, should really be fixed by extern C in the needed included files instead. *** png.h.org Sun Jul 18 11:50:28 1999 --- png.h Sun Jul 18 11:50:51 1999 *************** *** 94,102 **** #ifndef _PNG_H #define _PNG_H - #ifdef __cplusplus - extern "C" { - #endif /* __cplusplus */ /* This is not the place to learn how to use libpng. The file libpng.txt * describes how to use libpng, and the file example.c summarizes it --- 94,99 ---- *************** *** 110,115 **** --- 107,116 ---- /* include all user configurable info */ #include "pngconf.h" + #ifdef __cplusplus + extern "C" { + #endif /* __cplusplus */ + /* This file is arranged in several sections. The first section contains * structure and type definitions. The second section contains the external * library functions, while the third has the internal library functions,
Assignee: pnunn → newt
in pnglib:
Status: NEW → ASSIGNED
Per e-mail from Greg, he has relinquished PNG component ownership; thus, reassigning assigned bugs to ImageLib owner.
Assignee: newt → pnunn
Status: ASSIGNED → NEW
Status: NEW → ASSIGNED
Target Milestone: M16
Target Milestone: M16 → M17
Moving to m17
Moving to m18
Target Milestone: M17 → M18
Target Milestone: M18 → Future
The recommended patch was applied to libpng's png.h in mid-August 1999, at version 1.0.3b.
To help us focus on the Sun specific bugs when we do a bug query, I'm moving this one to Platform/OS category of All/All where it belong.
It would help if I actually did what I said I was going to do. Transferring to All/All.
OS: Solaris → All
Hardware: Sun → All
QA Contact: elig → tpreston
All pnunn bugs reassigned to Pav, who is taking over the imglib.
Assignee: pnunn → pavlov
Status: ASSIGNED → NEW
i build with workshop 5 and forte 6 all the time and havn't seen this.. marking worksforme
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
Coding issue, therefore marking verified
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.