aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/imap/MCIMAPPart.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/imap/MCIMAPPart.cc')
-rw-r--r--src/core/imap/MCIMAPPart.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/imap/MCIMAPPart.cc b/src/core/imap/MCIMAPPart.cc
index c75891a7..21336aa3 100644
--- a/src/core/imap/MCIMAPPart.cc
+++ b/src/core/imap/MCIMAPPart.cc
@@ -1,8 +1,11 @@
+#include "MCWin32.h" // Should be included first.
+
#include "MCIMAPPart.h"
#include <string.h>
#include <libetpan/libetpan.h>
+#include "MCDefines.h"
#include "MCIMAPMessagePart.h"
#include "MCIMAPMultipart.h"
#include "MCMessageHeader.h"
@@ -359,8 +362,7 @@ static void * createObject()
return new IMAPPart();
}
-__attribute__((constructor))
-static void initialize()
+INITIALIZE(IMAPPart)
{
Object::registerObjectConstructor("mailcore::IMAPPart", &createObject);
}