-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This gets PDL to build. Fixes #93 Also update the libgd version so it passes tests.
- Loading branch information
1 parent
c3a2000
commit 895f00a
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
diff -wu a/win32/vmem.h b/win32/vmem.h | ||
--- a/win32/vmem.h 2022-06-21 03:57:59.000000000 +1000 | ||
+++ b/win32/vmem.h 2022-07-21 02:30:13.000000000 +1000 | ||
@@ -69,14 +69,32 @@ | ||
|
||
#ifdef _USE_LINKED_LIST | ||
class VMem; | ||
+ | ||
+/* | ||
+ * Address an alignment issue with x64 mingw-w64 ports of gcc-12 and | ||
+ * (presumably) later. We do the same thing again 16 lines further down. | ||
+ * See https://github.com/Perl/perl5/issues/19824 | ||
+ */ | ||
+ | ||
+#if defined(__MINGW64__) && __GNUC__ > 11 | ||
+typedef struct _MemoryBlockHeader* PMEMORY_BLOCK_HEADER __attribute__ ((aligned(16))); | ||
+#else | ||
typedef struct _MemoryBlockHeader* PMEMORY_BLOCK_HEADER; | ||
+#endif | ||
+ | ||
typedef struct _MemoryBlockHeader { | ||
PMEMORY_BLOCK_HEADER pNext; | ||
PMEMORY_BLOCK_HEADER pPrev; | ||
VMem *owner; | ||
+ | ||
+#if defined(__MINGW64__) && __GNUC__ > 11 | ||
+} MEMORY_BLOCK_HEADER __attribute__ ((aligned(16))), *PMEMORY_BLOCK_HEADER; | ||
+#else | ||
} MEMORY_BLOCK_HEADER, *PMEMORY_BLOCK_HEADER; | ||
#endif | ||
|
||
+#endif | ||
+ | ||
class VMem | ||
{ | ||
public: | ||
|