From 74ab402e3eb08b53dbf2ad7d3a27b51cfae87f5b Mon Sep 17 00:00:00 2001 From: Binh-Minh Ribler Date: Thu, 8 Oct 2015 14:44:41 -0500 Subject: [svn-r28008] Description: Put back an unused name (need_cleanup) to avoid breaking compatibility in this release. Will do it when there are others as well. Platforms tested: Linux/32 2.6 (jam) - very minor --- c++/src/H5Library.cpp | 6 ++++++ c++/src/H5Library.h | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/c++/src/H5Library.cpp b/c++/src/H5Library.cpp index e7e9fb6..552f276 100644 --- a/c++/src/H5Library.cpp +++ b/c++/src/H5Library.cpp @@ -38,6 +38,12 @@ namespace H5 { #endif #ifndef DOXYGEN_SHOULD_SKIP_THIS +// This static variable will be set to true when dontAtExit is called +// - unused, will be removed in future releases. +bool H5Library::need_cleanup = false; + +// IdComponent default constructor instantiates this object to register cleanup +// functions before any global constant is created. H5Library* H5Library::instance = 0; #endif // DOXYGEN_SHOULD_SKIP_THIS diff --git a/c++/src/H5Library.h b/c++/src/H5Library.h index 68ab039..5e94cb5 100644 --- a/c++/src/H5Library.h +++ b/c++/src/H5Library.h @@ -29,6 +29,11 @@ namespace H5 { */ class H5_DLLCPP H5Library { public: +#ifndef DOXYGEN_SHOULD_SKIP_THIS + static bool need_cleanup; // indicates if H5close should be called + // - unused, will be removed in future releases. +#endif // DOXYGEN_SHOULD_SKIP_THIS + // Initializes the HDF5 library. static void open(); -- cgit v0.12