]> git.lyx.org Git - lyx.git/commitdiff
export when building vld
authorPeter Kümmel <syntheticpp@gmx.net>
Sun, 2 Dec 2007 18:37:58 +0000 (18:37 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Sun, 2 Dec 2007 18:37:58 +0000 (18:37 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21927 a592a061-630c-0410-9148-cb99ea01b6c8

development/Win32/vld/include/vld.h

index 66af3f0639bb82222d6e8d3a95c8b35faee0feb4..c6213de0005c180b381afddd169a77b2c807a7a9 100644 (file)
@@ -1,5 +1,4 @@
 ////////////////////////////////////////////////////////////////////////////////
-//  $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
@@ -64,7 +70,7 @@ extern "C" {
 //
 //    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
@@ -86,7 +92,7 @@ __declspec(dllimport) void VLDDisable ();
 //
 //    None.
 //
-__declspec(dllimport) void VLDEnable ();
+VLD_EXPORT void VLDEnable ();
 
 #ifdef __cplusplus
 }
@@ -98,6 +104,3 @@ __declspec(dllimport) void VLDEnable ();
 #define VLDDisable()
 
 #endif // _DEBUG
-
-#endif //VLD_BUILD
-