summaryrefslogtreecommitdiffstats
path: root/c++/src/H5RefCounter.h
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2000-12-12 04:40:09 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2000-12-12 04:40:09 (GMT)
commit84fadb9f74741dc53a07a8780d6d1f03c728e213 (patch)
tree572178cd402f07c6cf70eeff733fe97895683038 /c++/src/H5RefCounter.h
parent3dcc29ec41d6dad568ac15cfebbbfe163f314a5a (diff)
downloadhdf5-84fadb9f74741dc53a07a8780d6d1f03c728e213.zip
hdf5-84fadb9f74741dc53a07a8780d6d1f03c728e213.tar.gz
hdf5-84fadb9f74741dc53a07a8780d6d1f03c728e213.tar.bz2
[svn-r3114] Purpose: Fix
Description: Dec CC compiler doesn't support some new c++ features. Some typos caused compilation erros on Dec Alpha. Solution: - Added macro BOOL_NOTDEFINED to define bool type on Dec Alpha (gondolin) since its compiler doesn't support bool. - Added macro NO_STATIC_CAST to prevent the use of the new c++ feature static_cast since Dec CC compiler doesn't support. - Added const to parameters of some functions to match the functions' declaration and definition. Typos errors and Dec CC complained. Platform: Solaris (arabica). Also tried to build on Dec Alpha but still not linked due to some missing compiler flags; its compilation went fine though.
Diffstat (limited to 'c++/src/H5RefCounter.h')
-rw-r--r--c++/src/H5RefCounter.h22
1 files changed, 20 insertions, 2 deletions
diff --git a/c++/src/H5RefCounter.h b/c++/src/H5RefCounter.h
index dec1b3c..17c00d4 100644
--- a/c++/src/H5RefCounter.h
+++ b/c++/src/H5RefCounter.h
@@ -1,10 +1,28 @@
-#ifndef _H5RefCounter_H
-#define _H5RefCounter_H
+//#ifndef _H5RefCounter_H
+//#define _H5RefCounter_H
+#ifndef _MY_RefCounter
+#define _MY_RefCounter
#ifndef H5_NO_NAMESPACE
namespace H5 {
#endif
+// define bool type for platforms that don't support bool yet
+// Note: it is added here because most of the C++ library source
+// files include this header file
+#ifdef BOOL_NOTDEFINED
+#ifdef false
+#undef false
+#endif
+#ifdef true
+#undef true
+#endif
+typedef int bool;
+const bool false = 0;
+const bool true = 1;
+
+#endif
+
class RefCounter {
public:
// Creates a reference counter to be used by an HDF5 object