// Name: oleutils.h
// Purpose: OLE helper routines, OLE debugging support &c
// Author: Vadim Zeitlin
-// Modified by:
+// Modified by:
// Created: 19.02.1998
// RCS-ID: $Id$
// Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
#endif
#include "wx/defs.h"
-
+#ifdef wxUSE_NORLANDER_HEADERS
+#include <ole2.h>
+#endif
// ============================================================================
// General purpose functions and macros
// ============================================================================
// ============================================================================
/*
- The most dumb implementation of IUnknown methods. We don't support
+ The most dumb implementation of IUnknown methods. We don't support
aggregation nor containment, but for 99% of cases this simple
implementation is quite enough.
// Debugging support
// ============================================================================
-#if defined(__WXDEBUG__) && defined(_MSC_VER) && (_MSC_VER > 1000)
-// ----------------------------------------------------------------------------
-//
-// ----------------------------------------------------------------------------
-
+// VZ: I don't know it's not done for compilers other than VC++ but I leave it
+// as is. Please note, though, that tracing OLE interface calls may be
+// incredibly useful when debugging OLE programs.
+#if defined(__WXDEBUG__) && defined(__VISUALC__) && (__VISUALC__ >= 1000)
// ----------------------------------------------------------------------------
// All OLE specific log functions have DebugTrace level (as LogTrace)
// ----------------------------------------------------------------------------
#define wxLogRelease(szInterface, cRef)
#endif //WXDEBUG
-#endif //_WX_OLEUTILS_H
\ No newline at end of file
+#endif //_WX_OLEUTILS_H
+