Bug 764237 - Add snprintf and strcasecmp definitions in nsXULRunnerApp.cpp for windows. r=bsmedberg
authorMike Hommey <mh+mozilla@glandium.org>
Thu, 14 Jun 2012 08:14:55 +0200
changeset 96608 3f408698a03f
parent 96607 7625b37383fe
child 96660 85e31a4bdd41
child 96793 51c36b7f783b
push id22924
push usermh@glandium.org
push date2012-06-14 06:16 +0000
treeherdermozilla-central@3f408698a03f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg
bugs764237
milestone16.0a1
Bug 764237 - Add snprintf and strcasecmp definitions in nsXULRunnerApp.cpp for windows. r=bsmedberg
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 "nsIFile.h"
 #include "nsIXULAppInstall.h"
 #include "nsCOMPtr.h"
 #include "nsMemory.h"
 #include "nsCRTGlue.h"
 #include "nsStringAPI.h"
 #include "nsServiceManagerUtils.h"