summaryrefslogtreecommitdiffstats
path: root/c++/src/H5Exception.h
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2002-03-02 21:01:17 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2002-03-02 21:01:17 (GMT)
commit22c5ce3c5f901d7df4365a7a28ce78025ce44bdb (patch)
treefdf3b6f9d9ccaab0df838ba8135ab9f52670f493 /c++/src/H5Exception.h
parent0bb7111f436731fc765b00c8ef17368d1f57b126 (diff)
downloadhdf5-22c5ce3c5f901d7df4365a7a28ce78025ce44bdb.zip
hdf5-22c5ce3c5f901d7df4365a7a28ce78025ce44bdb.tar.gz
hdf5-22c5ce3c5f901d7df4365a7a28ce78025ce44bdb.tar.bz2
[svn-r5031]
Purpose: Minor bug fix Description: Added #ifdef for windows about a #pragma Platforms tested: IRIX64 (modi4)
Diffstat (limited to 'c++/src/H5Exception.h')
-rw-r--r--c++/src/H5Exception.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/c++/src/H5Exception.h b/c++/src/H5Exception.h
index 308d958..7b69e79 100644
--- a/c++/src/H5Exception.h
+++ b/c++/src/H5Exception.h
@@ -66,9 +66,11 @@ class __DLLCPP__ Exception {
private:
// Because 'string' is not instantiated at compilation time, this
-// warning is displayed; but the class is exported so the warning
-// is harmless
+// warning is displayed when building DLL; but the class is exported
+// so the warning is harmless
+#if defined(WIN32)
#pragma warning(disable: 4251)
+#endif
string detailMessage;
string funcName;
};