Author: cwittich Date: Fri Jan 25 15:13:24 2008 New Revision: 31986
URL: http://svn.reactos.org/svn/reactos?rev=31986&view=rev Log: fix build with gcc 4.3.0
Modified: trunk/reactos/base/shell/explorer/precomp.h trunk/reactos/base/shell/explorer/shell/shellbrowser.h trunk/reactos/base/shell/explorer/utility/utility.h
Modified: trunk/reactos/base/shell/explorer/precomp.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer/precomp... ============================================================================== --- trunk/reactos/base/shell/explorer/precomp.h (original) +++ trunk/reactos/base/shell/explorer/precomp.h Fri Jan 25 15:13:24 2008 @@ -28,6 +28,8 @@ #define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES 1 #define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT 1
+#include <limits.h> + #include "utility/utility.h"
#include "explorer.h"
Modified: trunk/reactos/base/shell/explorer/shell/shellbrowser.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer/shell/s... ============================================================================== --- trunk/reactos/base/shell/explorer/shell/shellbrowser.h (original) +++ trunk/reactos/base/shell/explorer/shell/shellbrowser.h Fri Jan 25 15:13:24 2008 @@ -28,6 +28,7 @@ #include "../utility/treedroptarget.h" #include "../utility/shellbrowserimpl.h"
+#include <memory>
/// information structure to hold current shell folder information struct ShellPathInfo
Modified: trunk/reactos/base/shell/explorer/utility/utility.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer/utility... ============================================================================== --- trunk/reactos/base/shell/explorer/utility/utility.h (original) +++ trunk/reactos/base/shell/explorer/utility/utility.h Fri Jan 25 15:13:24 2008 @@ -677,12 +677,16 @@ }
int PopupContextMenu(HWND hwnd, POINTS pos, UINT flags=TPM_LEFTBUTTON|TPM_RIGHTBUTTON) { - POINT pt; POINTSTOPOINT(pt, pos); + POINT pt; + pt.x = pos.x; + pt.y = pos.y; return TrackPopupMenuEx(_hmenu, flags, pt.x, pt.y, hwnd, NULL); }
int TrackPopupMenu(HWND hwnd, POINTS pos, UINT flags=TPM_LEFTBUTTON|TPM_RIGHTBUTTON) { - POINT pt; POINTSTOPOINT(pt, pos); + POINT pt; + pt.x = pos.x; + pt.y = pos.y; ClientToScreen(hwnd, &pt); return TrackPopupMenuEx(_hmenu, flags, pt.x, pt.y, hwnd, NULL); }