void-packages/srcpkgs/paraview/patches/fix-page_size-macro.patch

14 lines
528 B
Diff

--- Plugins/Datamine/Readers/dmfile.cxx 2020-08-04 22:12:01.000000000 +0200
+++ Plugins/Datamine/Readers/dmfile.cxx 2020-08-30 13:22:12.387889301 +0200
@@ -421,8 +421,8 @@
// number of records per page
// There is only 508 bytes per page ( table is 512 with 4 reserved )
- const int PAGE_SIZE = 508;
- int numRecsPerPage = PAGE_SIZE / recordLength;
+ const int DM_PAGE_SIZE = 508;
+ int numRecsPerPage = DM_PAGE_SIZE / recordLength;
// number of record on last page
int numRecsLastPage = GetNLastPageRecs();