[dcmtk] allow wasm build (#52481)

This commit is contained in:
Nick D'Ademo 2026-06-19 02:57:37 +08:00 committed by GitHub
parent 59acc80b23
commit fa4df61aab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 25 additions and 1 deletions

View File

@ -0,0 +1,16 @@
--- a/ofstd/libsrc/ofwhere.c
+++ b/ofstd/libsrc/ofwhere.c
@@ -33,5 +33,5 @@
-#if defined(__linux__) || defined(__CYGWIN__)
+#if defined(__linux__) || defined(__CYGWIN__) || defined(__EMSCRIPTEN__)
#undef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#elif defined(__APPLE__)
@@ -166,5 +166,5 @@
}
-#elif defined(__linux__) || defined(__CYGWIN__) || defined(__sun) || defined(WAI_USE_PROC_SELF_EXE)
+#elif defined(__linux__) || defined(__CYGWIN__) || defined(__sun) || defined(WAI_USE_PROC_SELF_EXE) || defined(__EMSCRIPTEN__)
#include <stdio.h>

View File

@ -11,7 +11,9 @@ vcpkg_from_github(
disable-test-setup.diff
pkgconfig-lib-order.diff
msvc.diff
emscripten-ofwhere.diff
)
file(REMOVE
"${SOURCE_PATH}/CMake/FindICONV.cmake"
"${SOURCE_PATH}/CMake/FindJPEG.cmake"

View File

@ -1,6 +1,7 @@
{
"name": "dcmtk",
"version": "3.7.0",
"port-version": 1,
"description": "This DICOM ToolKit (DCMTK) package consists of source code, documentation and installation instructions for a set of software libraries and applications implementing part of the DICOM/MEDICOM Standard.",
"homepage": "https://github.com/DCMTK/dcmtk",
"license": null,

View File

@ -2458,7 +2458,7 @@
},
"dcmtk": {
"baseline": "3.7.0",
"port-version": 0
"port-version": 1
},
"ddtdanilo-lmdb-wrapper": {
"baseline": "1.0.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "dd083279adef30a6018c8a82e09009c4bf64e214",
"version": "3.7.0",
"port-version": 1
},
{
"git-tree": "288bd880194f8ef326245cace498d59017b5a2ec",
"version": "3.7.0",