From 22c5ce3c5f901d7df4365a7a28ce78025ce44bdb Mon Sep 17 00:00:00 2001 From: Binh-Minh Ribler Date: Sat, 2 Mar 2002 16:01:17 -0500 Subject: [svn-r5031] Purpose: Minor bug fix Description: Added #ifdef for windows about a #pragma Platforms tested: IRIX64 (modi4) --- c++/src/H5Exception.h | 6 ++++-- 1 file 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; }; -- cgit v0.12