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
+5
View File
@@ -42,6 +42,11 @@ static char rcsid[] __attribute__ ((unused)) = "$Header: /usr/cvsroot/magic-8.0/
#include "cif/cif.h"
#include "drc/drc.h" /* For WRL's DRC-CIF extensions */
/* C99 compat */
#include "calma/calma.h"
#include "dbwind/dbwind.h"
#include "drc/drc.h"
/* The following statics are used to keep track of things between
* calls to CIFTechLine.
*/