Patchwork D9804: cext: fix compiler error in revlog.c on Windows with py2

login
register
mail settings
Submitter phabricator
Date Jan. 17, 2021, 2:38 a.m.
Message ID <differential-rev-PHID-DREV-6boomf4al7zploajip5y-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48115/
State Superseded
Headers show

Comments

phabricator - Jan. 17, 2021, 2:38 a.m.
mharbison72 created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  Visual Studio 2008 doesn't have <stdint.h>, and we worked around it before with
  this header.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D9804

AFFECTED FILES
  mercurial/cext/revlog.c

CHANGE DETAILS




To: mharbison72, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/cext/revlog.c b/mercurial/cext/revlog.c
--- a/mercurial/cext/revlog.c
+++ b/mercurial/cext/revlog.c
@@ -13,10 +13,10 @@ 
 #include <ctype.h>
 #include <limits.h>
 #include <stddef.h>
-#include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
 
+#include "compat.h"
 #include "bitmanipulation.h"
 #include "charencode.h"
 #include "revlog.h"