diff options
author | callum <none@none> | 2009-11-18 21:15:44 -0800 |
---|---|---|
committer | callum <none@none> | 2009-11-18 21:15:44 -0800 |
commit | 4419e367bcbe8c1b248e88eab8096f0b8ac4707c (patch) | |
tree | 9539d6f09d1114c437086ae4977ffee260096cee /indra/llwindow/lldragdropwin32.h | |
parent | 778005a350308d51f114ece74b4e7f3e7af3d37e (diff) |
Add support for removing the Windows specific drag/drop code
from the codebase via a new CMake file (DragDrop.cmake).
Diffstat (limited to 'indra/llwindow/lldragdropwin32.h')
-rw-r--r-- | indra/llwindow/lldragdropwin32.h | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/indra/llwindow/lldragdropwin32.h b/indra/llwindow/lldragdropwin32.h index 624f4ad24b..26c8e4aeff 100644 --- a/indra/llwindow/lldragdropwin32.h +++ b/indra/llwindow/lldragdropwin32.h @@ -30,11 +30,13 @@ * $/LicenseInfo$
*/
+#if LL_WINDOWS
+
+#if LL_OS_DRAGDROP_ENABLED
+
#ifndef LL_LLDRAGDROP32_H
#define LL_LLDRAGDROP32_H
-#if LL_WINDOWS
-
#include <windows.h>
#include <ole2.h>
@@ -51,7 +53,28 @@ class LLDragDropWin32 IDropTarget* mDropTarget;
HWND mDropWindowHandle;
};
+#endif // LL_LLDRAGDROP32_H
-#endif // LL_WINDOWS
+#else // LL_OS_DRAGDROP_ENABLED
+#ifndef LL_LLDRAGDROP32_H
+#define LL_LLDRAGDROP32_H
+
+#include <windows.h>
+#include <ole2.h>
+
+// imposter class that does nothing
+class LLDragDropWin32
+{
+ public:
+ LLDragDropWin32() {};
+ ~LLDragDropWin32() {};
+
+ bool init( HWND hWnd ) { return false; };
+ void reset() { };
+};
#endif // LL_LLDRAGDROP32_H
+
+#endif // LL_OS_DRAGDROP_ENABLED
+
+#endif // LL_WINDOWS
|