linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #04769
[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 2667: Mingw fixes
------------------------------------------------------------
revno: 2667
committer: Jacek Sieka <arnetheduck@xxxxxxxxx>
branch nick: dcplusplus
timestamp: Mon 2011-11-07 20:32:44 +0100
message:
Mingw fixes
modified:
dwt/include/dwt/GCCHeaders.h
dwt/include/dwt/aspects/CustomDraw.h
--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk
Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'dwt/include/dwt/GCCHeaders.h'
--- dwt/include/dwt/GCCHeaders.h 2011-05-27 11:22:59 +0000
+++ dwt/include/dwt/GCCHeaders.h 2011-11-07 19:32:44 +0000
@@ -336,6 +336,14 @@
} DTTOPTS, *PDTTOPTS;
#endif
+// No definition of this struct in mingw
+typedef struct tagNMTTCUSTOMDRAW
+{
+ NMCUSTOMDRAW nmcd;
+ UINT uDrawFlags;
+} NMTTCUSTOMDRAW, *LPNMTTCUSTOMDRAW;
+
+
#ifdef max
#undef max
#endif
=== modified file 'dwt/include/dwt/aspects/CustomDraw.h'
--- dwt/include/dwt/aspects/CustomDraw.h 2011-11-07 17:59:57 +0000
+++ dwt/include/dwt/aspects/CustomDraw.h 2011-11-07 19:32:44 +0000
@@ -44,7 +44,7 @@
struct Dispatcher : Dispatchers::Base<LRESULT (DataType&)> {
typedef Dispatchers::Base<LRESULT (DataType&)> BaseType;
- Dispatcher(const F& f) : BaseType(f) { }
+ Dispatcher(const typename BaseType::F& f) : BaseType(f) { }
bool operator()(const MSG& msg, LRESULT& ret) const {
ret = f(*reinterpret_cast<DataType*>(msg.lParam));