Compatibility with C99 standard

This commit makes the code (mostly) C99-compatible, enabling to compile
it without the -Wno-error=implicit-function-declaration flag. This
way, Magic becomes usable on arm64 architectures, specifically on Apple
computers with M1/M2 SoC.
This commit is contained in:
Alessandro De Laurenzis
2022-10-29 06:07:46 +02:00
parent 9d40fbfecb
commit b306a39560
151 changed files with 1095 additions and 19 deletions
+15
View File
@@ -235,4 +235,19 @@ extern unsigned char PlotPNMBG;
extern bool PlotPNMRTL;
#endif
/* C99 compat */
extern void PlotRastFatLine();
extern void PlotHPRTLHeader();
extern void PlotPS();
extern void PlotHPGL2Header();
extern void PlotPrintParams();
extern int PlotDumpHPRTL();
extern void PlotHPGL2Trailer();
extern void PlotSetParam();
extern void PlotHPRTLTrailer();
extern void PlotVersatec();
extern void PlotPNM();
extern void PlotPNM();
extern int PlotRTLCompress();
#endif /* _PLOTINT_H */