summaryrefslogtreecommitdiff
path: root/amiga/font_scan.h
diff options
context:
space:
mode:
Diffstat (limited to 'amiga/font_scan.h')
-rwxr-xr-xamiga/font_scan.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/amiga/font_scan.h b/amiga/font_scan.h
index 69361557f..7d61e2daa 100755
--- a/amiga/font_scan.h
+++ b/amiga/font_scan.h
@@ -21,6 +21,14 @@
#include "amiga/os3support.h"
#include <libwapcaplet/libwapcaplet.h>
+/* Compatibliity define used by font.c and font_scan.c
+ * It's here because this file is included by both. */
+#ifdef __amigaos4__
+#define AMI_OFONT_ENGINE &ofont->olf_EEngine
+#else
+#define AMI_OFONT_ENGINE ofont->GEngine
+#endif
+
void ami_font_scan_init(const char *filename, bool force_scan, bool save,
lwc_string **glypharray);
void ami_font_scan_fini(lwc_string **glypharray);
@@ -28,3 +36,4 @@ void ami_font_scan_save(const char *filename, lwc_string **glypharray);
const char *ami_font_scan_lookup(const uint16 *code, lwc_string **glypharray);
#endif
+