Files
MINGW-packages/mingw-w64-hdf5/0002-dynamic-allocation-functions.patch
مهدي شينون (Mehdi Chinoune) 42462f2a28 hdf5: update to 2.0.0
2025-12-14 17:54:46 +01:00

16 lines
481 B
Diff

To enable Dynamic Allocation Functions, features from ISO/IEC TR 24731-2:2010,
the macro __STDC_WANT_LIB_EXT2__ hs to be defined to 1 before to the stdio.h
header is included.
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -25,6 +25,8 @@
* implicitly. */
#define __STDC_WANT_IEC_60559_TYPES_EXT__
+#define __STDC_WANT_LIB_EXT2__ 1 // define for TR 24731-2:2010 extensions (e.g., vasprintf)
+
#include "H5public.h" /* Include Public Definitions */
#include <assert.h>