Skip to content

Commit 923bed5

Browse files
committed
fix: guard exports in heidisql.lpr with IFNDEF DARWIN (macOS cannot parse exports in main program)
1 parent 33a3e2d commit 923bed5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎heidisql.lpr‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@
1919

2020
// Export the callback from unit loginform, so that libmysqlclient's "dialog"
2121
// authentication plugin can find it in the executable's export table.
22-
// FPC only allows exports in the main program, not in units.
22+
// FPC only allows exports in the main program, not in units, and not on macOS
23+
// (Mach-O does not support an exports section in the main executable).
24+
{$IFNDEF DARWIN}
2325
exports
2426
mysql_authentication_dialog_ask;
27+
{$ENDIF}
2528

2629
var
2730
AppLanguage: String;

0 commit comments

Comments
 (0)