Author: Amaury Forgeot d'Arc <[email protected]>
Branch: win32-faulthandler
Changeset: r91002:e0912f110132
Date: 2017-04-06 18:01 +0200
http://bitbucket.org/pypy/pypy/changeset/e0912f110132/

Log:    Do it differently. _vmprof.h is not included in RPython mode.

diff --git a/rpython/rlib/rvmprof/src/rvmprof.h 
b/rpython/rlib/rvmprof/src/rvmprof.h
--- a/rpython/rlib/rvmprof/src/rvmprof.h
+++ b/rpython/rlib/rvmprof/src/rvmprof.h
@@ -6,6 +6,8 @@
 
 #ifdef VMPROF_WINDOWS
 #include <crtdefs.h>
+typedef __int64 int64_t;
+typedef unsigned __int64 uint64_t;
 #else
 #include <inttypes.h>
 #include <stdint.h>
diff --git a/rpython/rlib/rvmprof/src/shared/_vmprof.h 
b/rpython/rlib/rvmprof/src/shared/_vmprof.h
--- a/rpython/rlib/rvmprof/src/shared/_vmprof.h
+++ b/rpython/rlib/rvmprof/src/shared/_vmprof.h
@@ -8,9 +8,8 @@
 // CPython 3.6 defines all the inttypes for us, we do not need the msiinttypes
 // library for that version or any newer!
 #if (PY_VERSION_HEX < 0x3060000)
-#include <crtdefs.h>
-typedef __int64 int64_t;
-typedef unsigned __int64 uint64_t;
+#include "msiinttypes/inttypes.h"
+#include "msiinttypes/stdint.h"
 #endif
 
 #else
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to