diff --git a/mailnews/mime/cthandlers/vcard/mimevcrd.cpp b/mailnews/mime/cthandlers/vcard/mimevcrd.cpp index 4a8ec9f84b34..5699f42eb223 100644 --- a/mailnews/mime/cthandlers/vcard/mimevcrd.cpp +++ b/mailnews/mime/cthandlers/vcard/mimevcrd.cpp @@ -49,7 +49,9 @@ #include "nsCRT.h" // String bundles... +#ifndef XP_MAC nsCOMPtr stringBundle = nsnull; +#endif static int MimeInlineTextVCard_parse_line (char *, PRInt32, MimeObject *); static int MimeInlineTextVCard_parse_eof (MimeObject *, PRBool); @@ -1960,6 +1962,10 @@ VCardGetStringByID(PRInt32 aMsgId) char *tempString = nsnull; nsresult res = NS_OK; +#ifdef XP_MAC +nsCOMPtr stringBundle = nsnull; +#endif + if (!stringBundle) { char* propertyURL = NULL;