mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-29 09:30:46 +02:00
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:
@@ -24,6 +24,9 @@ static char rcsid[] __attribute__ ((unused)) = "$Header: /usr/cvsroot/magic-8.0/
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
/* C99 compat */
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "utils/magic.h"
|
||||
#include "utils/geometry.h"
|
||||
#include "utils/geofast.h"
|
||||
@@ -41,6 +44,9 @@ static char rcsid[] __attribute__ ((unused)) = "$Header: /usr/cvsroot/magic-8.0/
|
||||
#include "dbwind/dbwind.h"
|
||||
#include "cif/cif.h" /* for CIFGetOutputScale() */
|
||||
|
||||
/* C99 compat */
|
||||
#include "plot/plotInt.h"
|
||||
|
||||
#ifdef VERSATEC
|
||||
|
||||
/* Library imports: */
|
||||
|
||||
Reference in New Issue
Block a user