[shellapi.h]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Wed, 14 Jul 2010 23:52:48 +0000 (23:52 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Wed, 14 Jul 2010 23:52:48 +0000 (23:52 +0000)
fix inclusion of pshpack / poppack (global and not for _WIN64)

svn path=/trunk/; revision=48055

reactos/include/psdk/shellapi.h

index 888f9d9..9c7dff0 100644 (file)
@@ -8,6 +8,11 @@ extern "C" {
 #pragma warning(push)
 #pragma warning(disable:4201)
 #endif
 #pragma warning(push)
 #pragma warning(disable:4201)
 #endif
+
+#if !defined(_WIN64)
+#include <pshpack1.h>
+#endif
+
 #define WINSHELLAPI DECLSPEC_IMPORT
 #define ABE_LEFT       0
 #define ABE_TOP        1
 #define WINSHELLAPI DECLSPEC_IMPORT
 #define ABE_LEFT       0
 #define ABE_TOP        1
@@ -160,7 +165,7 @@ typedef struct _SHCREATEPROCESSINFOW
 
 typedef WORD FILEOP_FLAGS;
 typedef WORD PRINTEROP_FLAGS;
 
 typedef WORD FILEOP_FLAGS;
 typedef WORD PRINTEROP_FLAGS;
-#include <pshpack1.h>
+
 typedef struct _AppBarData {
        DWORD   cbSize;
        HWND    hWnd;
 typedef struct _AppBarData {
        DWORD   cbSize;
        HWND    hWnd;
@@ -330,7 +335,6 @@ typedef struct _SHNAMEMAPPINGW {
        int     cchOldPath;
        int     cchNewPath;
 } SHNAMEMAPPINGW, *LPSHNAMEMAPPINGW;
        int     cchOldPath;
        int     cchNewPath;
 } SHNAMEMAPPINGW, *LPSHNAMEMAPPINGW;
-#include <poppack.h>
 
 #define SHERB_NOCONFIRMATION 0x1
 #define SHERB_NOPROGRESSUI   0x2
 
 #define SHERB_NOCONFIRMATION 0x1
 #define SHERB_NOPROGRESSUI   0x2
@@ -440,6 +444,11 @@ typedef LPSHNAMEMAPPINGA LPSHNAMEMAPPING;
 #define SHEmptyRecycleBin SHEmptyRecycleBinA
 #define SHGetNewLinkInfo SHGetNewLinkInfoA
 #endif
 #define SHEmptyRecycleBin SHEmptyRecycleBinA
 #define SHGetNewLinkInfo SHGetNewLinkInfoA
 #endif
+
+#if !defined(_WIN64)
+#include <pshpack1.h>
+#endif
+
 #ifdef _MSC_VER
 #pragma warning(pop)
 #endif
 #ifdef _MSC_VER
 #pragma warning(pop)
 #endif