Bug 764237 - Add snprintf and strcasecmp definitions in nsXULRunnerApp.cpp for windows. r=bsmedberg,a=lsblakk
authorMike Hommey <mh+mozilla@glandium.org>
Thu, 14 Jun 2012 08:14:55 +0200
changeset 100396 9db11ac5983db6c1572e29642c59a9314541b80b
parent 100395 5f0f44f8cc0e109c4ea9bc886219b44a991e4bdb
child 100397 72c27b21702e4a990a54ce7fa94484fea7bebecc
push id173
push userlsblakk@mozilla.com
push dateFri, 24 Aug 2012 15:39:16 +0000
treeherdermozilla-release@bcc45eb1fb41 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg, lsblakk
bugs764237
milestone15.0a2
Bug 764237 - Add snprintf and strcasecmp definitions in nsXULRunnerApp.cpp for windows. r=bsmedberg,a=lsblakk
xulrunner/app/nsXULRunnerApp.cpp
--- a/xulrunner/app/nsXULRunnerApp.cpp
+++ b/xulrunner/app/nsXULRunnerApp.cpp
@@ -3,20 +3,20 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "nsXULAppAPI.h"
 #include "nsXPCOMGlue.h"
 #include <stdio.h>
 #include <stdlib.h>
 #ifdef XP_WIN
 #include <windows.h>
+#define snprintf _snprintf
+#define strcasecmp _stricmp
 #endif
 
-#include "nsXULAppAPI.h"
-#include "nsXPCOMGlue.h"
 #include "nsAppRunner.h"
 #include "nsILocalFile.h"
 #include "nsIXULAppInstall.h"
 #include "nsCOMPtr.h"
 #include "nsMemory.h"
 #include "nsCRTGlue.h"
 #include "nsStringAPI.h"
 #include "nsServiceManagerUtils.h"