summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2014-11-21 16:01:53 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2014-11-21 16:01:53 (GMT)
commit2b02526cd1d983098cccf77f392da69faebd296f (patch)
treed0d7ea6dda60ee6cbe8e81240da06055d76ec12a /win
parent02b7dee9a642200099ef1c8c7fac28442207eb6c (diff)
downloadtk-2b02526cd1d983098cccf77f392da69faebd296f.zip
tk-2b02526cd1d983098cccf77f392da69faebd296f.tar.gz
tk-2b02526cd1d983098cccf77f392da69faebd296f.tar.bz2
Fix [1c0d6e162c8876fd1bc0526c7cc59c320853d23|1c0d6e162c]: tkWinDialog.c defines type "SIGDN" (enum __MIDL_IShellItem_0001), which is already defined
Diffstat (limited to 'win')
-rw-r--r--win/tkWinDialog.c33
1 files changed, 19 insertions, 14 deletions
diff --git a/win/tkWinDialog.c b/win/tkWinDialog.c
index 37e4dfb..adb5e9e 100644
--- a/win/tkWinDialog.c
+++ b/win/tkWinDialog.c
@@ -209,19 +209,9 @@ enum OFNOper {
* older compilers? Should we prefix definitions with Tcl_ instead
* of using the same names as in the SDK?
*/
-#ifndef __IShellItemArray_INTERFACE_DEFINED__
-#define __IShellItemArray_INTERFACE_DEFINED__
-
-typedef enum SIATTRIBFLAGS {
- SIATTRIBFLAGS_AND = 0x1,
- SIATTRIBFLAGS_OR = 0x2,
- SIATTRIBFLAGS_APPCOMPAT = 0x3,
- SIATTRIBFLAGS_MASK = 0x3,
- SIATTRIBFLAGS_ALLITEMS = 0x4000
-} SIATTRIBFLAGS;
+#ifndef __IShellItem_INTERFACE_DEFINED__
+# define __IShellItem_INTERFACE_DEFINED__
#ifdef __MSVCRT__
-typedef ULONG SFGAOF;
-
typedef struct IShellItem IShellItem;
typedef enum __MIDL_IShellItem_0001 {
@@ -250,6 +240,21 @@ typedef struct IShellItemVtbl
struct IShellItem {
CONST_VTBL struct IShellItemVtbl *lpVtbl;
};
+#endif
+#endif
+
+#ifndef __IShellItemArray_INTERFACE_DEFINED__
+#define __IShellItemArray_INTERFACE_DEFINED__
+
+typedef enum SIATTRIBFLAGS {
+ SIATTRIBFLAGS_AND = 0x1,
+ SIATTRIBFLAGS_OR = 0x2,
+ SIATTRIBFLAGS_APPCOMPAT = 0x3,
+ SIATTRIBFLAGS_MASK = 0x3,
+ SIATTRIBFLAGS_ALLITEMS = 0x4000
+} SIATTRIBFLAGS;
+#ifdef __MSVCRT__
+typedef ULONG SFGAOF;
#endif /* __MSVCRT__ */
typedef struct IShellItemArray IShellItemArray;
typedef struct IShellItemArrayVtbl
@@ -1744,11 +1749,11 @@ static int GetFileNameXP(Tcl_Interp *interp, OFNOpts *optsPtr, enum OFNOper oper
* BUGFIX for d43a10ce2fed950e00890049f3c273f2cdd12583
* The original code was broken because it passed typeinfo[0]
* directly into Tcl_ObjSetVar2. In the case of typeInfo[0]
- * pointing into a list which is also referenced by
+ * pointing into a list which is also referenced by
* typeVariableObj, TOSV2 shimmers the object into
* variable intrep which loses the list representation.
* This invalidates typeInfo[0] which is freed but
- * nevertheless stored as the value of the variable.
+ * nevertheless stored as the value of the variable.
*/
Tcl_Obj *selFilterObj = typeInfo[0];
Tcl_IncrRefCount(selFilterObj);