Bug 1511078: Follow-up - fix mingw build failures for TestNativeNt; r=bustage
☠☠ backed out by b37c6861572a ☠ ☠
authorAaron Klotz <aklotz@mozilla.com>
Tue, 15 Jan 2019 13:39:49 -0700
changeset 511087 61a47d6d5e26
parent 511086 8ffff925bbb6
child 511088 9f33f21de5de
push id10547
push userffxbld-merge
push dateMon, 21 Jan 2019 13:03:58 +0000
treeherdermozilla-beta@24ec1916bffe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs1511078
milestone66.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1511078: Follow-up - fix mingw build failures for TestNativeNt; r=bustage
mozglue/tests/TestNativeNt.cpp
--- a/mozglue/tests/TestNativeNt.cpp
+++ b/mozglue/tests/TestNativeNt.cpp
@@ -33,17 +33,17 @@ const char kFailFmt[] =
 
 #define EXPECT_FAIL(fn, varName) RUN_TEST(fn, varName, false)
 
 #define EXPECT_SUCCESS(fn, varName) RUN_TEST(fn, varName, true)
 
 using namespace mozilla;
 using namespace mozilla::nt;
 
-extern "C" int wmain(int argc, wchar_t* argv[]) {
+int main(int argc, char* argv[]) {
   UNICODE_STRING normal;
   ::RtlInitUnicodeString(&normal, kNormal);
 
   UNICODE_STRING hex12;
   ::RtlInitUnicodeString(&hex12, kHex12);
 
   UNICODE_STRING hex16;
   ::RtlInitUnicodeString(&hex16, kHex16);