]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/morefile/IterateD.cpp
added wxListView class: this is going to be a wxListCtrl with human (inter)face
[wxWidgets.git] / src / mac / morefile / IterateD.cpp
index 6b7e52a78c4b0fbd76cbe4857d0102f5576e1f21..4786b80c015799f9afc835ab042dd27b5963b78c 100644 (file)
@@ -22,8 +22,8 @@
 
 #define        __COMPILINGMOREFILES
 
-#include "MoreExtr.h"
-#include "IterateD.h"
+#include "moreextr.h"
+#include "iterated.h"
 
 /*
 **     Type definitions
 ** stack space used when recursively calling IterateDirectoryLevel
 ** and to hold global information that might be needed at any time.
 */
-#if PRAGMA_ALIGN_SUPPORTED
-#pragma options align=mac68k
+#if PRAGMA_STRUCT_ALIGN
+    #pragma options align=mac68k
+#elif PRAGMA_STRUCT_PACKPUSH
+    #pragma pack(push, 2)
+#elif PRAGMA_STRUCT_PACK
+    #pragma pack(2)
 #endif
+
 struct IterateGlobals
 {
        IterateFilterProcPtr    iterateFilter;  /* pointer to IterateFilterProc */
@@ -47,8 +52,13 @@ struct IterateGlobals
        unsigned short                  currentLevel;   /* The current level IterateLevel is on */
        void                                    *yourDataPtr;   /* A pointer to caller data the filter may need to access */
 };
-#if PRAGMA_ALIGN_SUPPORTED
-#pragma options align=reset
+
+#if PRAGMA_STRUCT_ALIGN
+    #pragma options align=reset
+#elif PRAGMA_STRUCT_PACKPUSH
+    #pragma pack(pop)
+#elif PRAGMA_STRUCT_PACK
+    #pragma pack()
 #endif
 
 typedef struct IterateGlobals IterateGlobals;