[Mingw-w64-public] [PATCH] Move syslink control constants behind of common control styles.

2014-09-02 Thread 宋冬生
This commit fix this compiler error:

commctrl.h:3360:20: error: 'L_MAX_URL_LENGTH' undeclared here (not in a 
function)
 WCHAR szMarkup[L_MAX_URL_LENGTH];
---
 mingw-w64-headers/include/commctrl.h |   14 --
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/mingw-w64-headers/include/commctrl.h 
b/mingw-w64-headers/include/commctrl.h
index 8e694fc..56bf32c 100644
--- a/mingw-w64-headers/include/commctrl.h
+++ b/mingw-w64-headers/include/commctrl.h
@@ -2194,6 +2194,14 @@ extern C {
 #define CCS_RIGHT (CCS_VERT | CCS_BOTTOM)
 #define CCS_NOMOVEX (CCS_VERT | CCS_NOMOVEY)
 
+#ifdef _WIN32
+#define INVALID_LINK_INDEX (-1)
+#define MAX_LINKID_TEXT 48
+#define L_MAX_URL_LENGTH (2048+32+sizeof(://))
+
+#define WC_LINK LSysLink
+#endif
+
 #ifndef NOLISTVIEW
 
 #define WC_LISTVIEWA SysListView32
@@ -5109,12 +5117,6 @@ typedef struct tagTVDISPINFOEXW {
 
 #endif
 
-#define INVALID_LINK_INDEX (-1)
-#define MAX_LINKID_TEXT 48
-#define L_MAX_URL_LENGTH (2048+32+sizeof(://))
-
-#define WC_LINK LSysLink
-
 #define LWS_TRANSPARENT 0x1
 #define LWS_IGNORERETURN 0x2
 #if NTDDI_VERSION = 0x0600
-- 
1.7.10.4


--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH] Move syslink control constants behind of common control styles.

2014-09-02 Thread Dongsheng Song
Please ignore this patch, it's not complete.

On Wed, Sep 3, 2014 at 10:45 AM, 宋冬生 dongsheng.s...@gmail.com wrote:
 This commit fix this compiler error:

 commctrl.h:3360:20: error: 'L_MAX_URL_LENGTH' undeclared here (not in a 
 function)
  WCHAR szMarkup[L_MAX_URL_LENGTH];
 ---
  mingw-w64-headers/include/commctrl.h |   14 --
  1 file changed, 8 insertions(+), 6 deletions(-)

 diff --git a/mingw-w64-headers/include/commctrl.h 
 b/mingw-w64-headers/include/commctrl.h
 index 8e694fc..56bf32c 100644
 --- a/mingw-w64-headers/include/commctrl.h
 +++ b/mingw-w64-headers/include/commctrl.h
 @@ -2194,6 +2194,14 @@ extern C {
  #define CCS_RIGHT (CCS_VERT | CCS_BOTTOM)
  #define CCS_NOMOVEX (CCS_VERT | CCS_NOMOVEY)

 +#ifdef _WIN32
 +#define INVALID_LINK_INDEX (-1)
 +#define MAX_LINKID_TEXT 48
 +#define L_MAX_URL_LENGTH (2048+32+sizeof(://))
 +
 +#define WC_LINK LSysLink
 +#endif
 +
  #ifndef NOLISTVIEW

  #define WC_LISTVIEWA SysListView32
 @@ -5109,12 +5117,6 @@ typedef struct tagTVDISPINFOEXW {

  #endif

 -#define INVALID_LINK_INDEX (-1)
 -#define MAX_LINKID_TEXT 48
 -#define L_MAX_URL_LENGTH (2048+32+sizeof(://))
 -
 -#define WC_LINK LSysLink
 -
  #define LWS_TRANSPARENT 0x1
  #define LWS_IGNORERETURN 0x2
  #if NTDDI_VERSION = 0x0600
 --
 1.7.10.4


--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public