From 62008ec5d9322429962ccaae16fb2f5cac663449 Mon Sep 17 00:00:00 2001 From: Nishi Date: Tue, 28 Apr 2026 22:01:42 +0900 Subject: [PATCH] fix --- include/Mw/MachDep.h | 4 +++- pl/utils.pl | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/Mw/MachDep.h b/include/Mw/MachDep.h index 99245fb..2658b04 100644 --- a/include/Mw/MachDep.h +++ b/include/Mw/MachDep.h @@ -62,12 +62,14 @@ #include #endif -#if defined(__HAIKU__) && defined(__cplusplus) +#ifdef __HAIKU__ +#ifdef __cplusplus #include #include #include #include #include +#endif #include #endif diff --git a/pl/utils.pl b/pl/utils.pl index 3073a9e..70750cb 100644 --- a/pl/utils.pl +++ b/pl/utils.pl @@ -54,7 +54,7 @@ sub set_shared_flag { sub new_object { my @l = glob($_[0]); foreach my $e (@l) { - $e =~ s/\.(cxx|c|m)$/$object_suffix/; + $e =~ s/\.(cc|c|m)$/$object_suffix/; push(@library_targets, $e); } }