fix windows crash

This commit is contained in:
henderkes
2026-04-12 15:55:57 +07:00
parent f585cc446a
commit a0c2fefd24
2 changed files with 6 additions and 8 deletions

View File

@@ -29,13 +29,5 @@ class libmpdec extends WindowsLibraryBase
}
}
copy($makefile_dir . '\mpdecimal.h', BUILD_INCLUDE_PATH . '\mpdecimal.h');
// Disable dllimport for static linking: the header defaults to
// __declspec(dllimport) when _DLL is defined, idk if php builds with /MD
FileSystem::replaceFileStr(
BUILD_INCLUDE_PATH . '\mpdecimal.h',
'#elif defined(_DLL)',
'#elif 0'
);
}
}