зеркало из https://github.com/mozilla/gecko-dev.git
Backout changeset f18c63c99be6 (bug 789257) for breaking the builds
This commit is contained in:
Родитель
92bd94f810
Коммит
188c0c5257
|
@ -15,7 +15,9 @@
|
|||
#include "updatehelper.h"
|
||||
#endif
|
||||
|
||||
#define UPDATER_NO_STRING_GLUE_STL
|
||||
#include "../../../../xpcom/build/nsVersionComparator.cpp"
|
||||
#undef UPDATER_NO_STRING_GLUE_STL
|
||||
|
||||
#if defined(XP_UNIX)
|
||||
# include <sys/types.h>
|
||||
|
|
|
@ -3,8 +3,13 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsVersionComparator.h"
|
||||
#include <algorithm>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#if defined(XP_WIN) && !defined(UPDATER_NO_STRING_GLUE_STL)
|
||||
#include <wchar.h>
|
||||
#include "nsStringGlue.h"
|
||||
#endif
|
||||
|
||||
struct VersionPart {
|
||||
int32_t numA;
|
||||
|
@ -252,7 +257,7 @@ CompareVP(VersionPartW &v1, VersionPartW &v2)
|
|||
if (r)
|
||||
return r;
|
||||
|
||||
r = wcsncmp(v1.strB, v2.strB, std::min(v1.strBlen,v2.strBlen));
|
||||
r = wcsncmp(v1.strB, v2.strB, NS_MIN(v1.strBlen,v2.strBlen));
|
||||
if (r)
|
||||
return r;
|
||||
|
||||
|
|
|
@ -6,9 +6,13 @@
|
|||
#define nsVersionComparator_h__
|
||||
|
||||
#include "nscore.h"
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#if defined(XP_WIN) && !defined(UPDATER_NO_STRING_GLUE_STL)
|
||||
#include <wchar.h>
|
||||
#include "nsStringGlue.h"
|
||||
#endif
|
||||
|
||||
/**
|
||||
* In order to compare version numbers in Mozilla, you need to use the
|
||||
|
|
Загрузка…
Ссылка в новой задаче