////////////////////////////////////////////////////////////////////////////////
-// $Id: vld.h,v 1.29 2006/11/18 03:12:35 dmouldin Exp $
//
// Visual Leak Detector - Import Library Header
// Copyright (c) 2006 Dan Moulding
#pragma once
-#ifndef VLD_BUILD
+#ifdef VLD_BUILD
+#define VLD_EXPORT __declspec(dllexport)
+#else
-#ifdef _DEBUG
+#define VLD_EXPORT __declspec(dllimport)
#pragma comment(lib, "vld.lib")
// even if no code otherwise imports any of the DLL's exports.
#pragma comment(linker, "/include:__imp_?vld@@3VVisualLeakDetector@@A")
+#endif
+
+
+#ifdef _DEBUG
+
////////////////////////////////////////////////////////////////////////////////
//
// Visual Leak Detector APIs
//
// None.
//
-__declspec(dllimport) void VLDDisable ();
+VLD_EXPORT void VLDDisable ();
// VLDEnable - Enables Visual Leak Detector's memory leak detection at runtime.
// If memory leak detection is already enabled, which it is by default, then
//
// None.
//
-__declspec(dllimport) void VLDEnable ();
+VLD_EXPORT void VLDEnable ();
#ifdef __cplusplus
}
#define VLDDisable()
#endif // _DEBUG
-
-#endif //VLD_BUILD
-